Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9005/0.9005, allocations: 177.1 MB / 199.4 MB, free: 5.922 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 156.6 kB / 256 MB, free: 13.34 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.02204/0.02204, allocations: 6.664 MB / 319 MB, free: 26.76 MB / 266.7 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 445.4 MB, free: 37.61 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.874e-05/2.068e-05, allocations: 2.281 kB / 445.4 MB, free: 37.6 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.019/0.01902, allocations: 22.01 MB / 467.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.03409, allocations: 7.706 MB / 475.1 MB, free: 7.75 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003328/0.03742, allocations: 207 kB / 475.3 MB, free: 7.547 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01052/0.04794, allocations: 7.542 MB / 482.9 MB, free: 15.98 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006717/0.05466, allocations: 3.177 MB / 486.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002657/0.05732, allocations: 2.014 MB / 488.1 MB, free: 10.79 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007515/0.06483, allocations: 9.7 MB / 497.8 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01122/0.07606, allocations: 11.23 MB / 0.4971 GB, free: 5.691 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006657/0.08271, allocations: 7.137 MB / 0.504 GB, free: 14.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003924/0.08664, allocations: 4.518 MB / 0.5085 GB, free: 10.02 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001279/0.08792, allocations: 1.352 MB / 0.5098 GB, free: 8.664 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.08991, allocations: 1.741 MB / 0.5115 GB, free: 6.922 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.09134, allocations: 2.727 MB / 0.5141 GB, free: 4.188 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002797/0.09413, allocations: 3.423 MB / 0.5175 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01161/0.1057, allocations: 18.48 MB / 0.5355 GB, free: 14.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1058, allocations: 0 / 0.5355 GB, free: 14.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1058, allocations: 0 / 0.5355 GB, free: 14.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001695/0.1059, allocations: 0 / 0.5355 GB, free: 14.23 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.01526/0.1212, allocations: 10.8 MB / 0.5461 GB, free: 3.344 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.1212, allocations: 8.031 kB / 0.5461 GB, free: 3.336 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001365/0.1226, allocations: 1.272 MB / 0.5473 GB, free: 2.055 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01567/0.1383, allocations: 5.68 MB / 0.5529 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009522/0.1478, allocations: 5.836 MB / 0.5586 GB, free: 6.457 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003208/0.1481, allocations: 0.582 MB / 0.5591 GB, free: 5.875 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001493/0.1496, allocations: 0.7655 MB / 0.5599 GB, free: 5.109 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3112/0.4608, allocations: 12.99 MB / 0.5726 GB, free: 103.8 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001248/0.4609, allocations: 6.938 kB / 0.5726 GB, free: 103.8 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005738/0.4615, allocations: 326.4 kB / 0.5729 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002683/0.4617, allocations: 0.4896 MB / 0.5734 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01278/0.4745, allocations: 12.24 MB / 0.5853 GB, free: 97.16 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03077/0.5053, allocations: 38 MB / 0.6224 GB, free: 59.12 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008439/0.5137, allocations: 8.915 MB / 0.6311 GB, free: 51.2 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00223/0.5159, allocations: 2.717 MB / 0.6338 GB, free: 48.49 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001751/0.5161, allocations: 98.97 kB / 0.6339 GB, free: 48.39 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002164/0.5183, allocations: 2.787 MB / 0.6366 GB, free: 45.49 MB / 426.8 MB Notification: Performance of pre-optimization done (n=391): time 5.471e-06/0.5183, allocations: 0 / 0.6366 GB, free: 45.49 MB / 426.8 MB Notification: Performance of matching and sorting (n=397): time 0.01957/0.5379, allocations: 18.35 MB / 0.6545 GB, free: 27.4 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.5379, allocations: 355.5 kB / 0.6549 GB, free: 26.98 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002887/0.5408, allocations: 3.642 MB / 0.6584 GB, free: 23.42 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000135/0.5409, allocations: 89.7 kB / 0.6585 GB, free: 23.33 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008305/0.5418, allocations: 3.491 MB / 0.6619 GB, free: 19.94 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004466/0.5422, allocations: 1.397 MB / 0.6633 GB, free: 18.56 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009137/0.5431, allocations: 1.085 MB / 0.6643 GB, free: 17.46 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 3.136e-05/0.5432, allocations: 309 kB / 0.6646 GB, free: 17.16 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002141/0.5453, allocations: 2.589 MB / 0.6672 GB, free: 14.56 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002819/0.5481, allocations: 4.713 MB / 0.6718 GB, free: 8.914 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005394/0.5535, allocations: 7.471 MB / 0.6791 GB, free: 0.5703 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.166e-05/0.5535, allocations: 16 kB / 0.6791 GB, free: 0.5547 MB / 426.8 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.009582/0.5631, allocations: 8.32 MB / 0.6872 GB, free: 8.199 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.525e-05/0.5632, allocations: 57.7 kB / 0.6873 GB, free: 8.137 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.831e-05/0.5632, allocations: 60 kB / 0.6873 GB, free: 8.078 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001732/0.565, allocations: 0.9968 MB / 0.6883 GB, free: 7.078 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002365/0.5673, allocations: 1.264 MB / 0.6895 GB, free: 5.812 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008882/0.5762, allocations: 8.569 MB / 0.6979 GB, free: 13.14 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002594/0.5788, allocations: 347.6 kB / 0.6982 GB, free: 12.8 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002784/0.5791, allocations: 271.9 kB / 0.6985 GB, free: 12.53 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003625/0.5827, allocations: 2.906 MB / 0.7013 GB, free: 9.605 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005946/0.5833, allocations: 409.4 kB / 0.7017 GB, free: 9.203 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006805/0.5901, allocations: 6.173 MB / 0.7077 GB, free: 2.969 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/0.5901, allocations: 40 kB / 0.7078 GB, free: 2.93 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.5901, allocations: 12 kB / 0.7078 GB, free: 2.918 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.38e-05/0.5902, allocations: 20.11 kB / 0.7078 GB, free: 2.898 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01532/0.6055, allocations: 13.99 MB / 0.7215 GB, free: 4.848 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.6055, allocations: 7.938 kB / 0.7215 GB, free: 4.84 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/0.6069, allocations: 0.6826 MB / 0.7221 GB, free: 4.156 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00168/0.6086, allocations: 0.876 MB / 0.723 GB, free: 3.277 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001633/0.6088, allocations: 91.97 kB / 0.7231 GB, free: 3.188 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007319/0.6161, allocations: 7.498 MB / 0.7304 GB, free: 11.59 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.6161, allocations: 12.03 kB / 0.7304 GB, free: 11.58 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009808/0.6259, allocations: 8.831 MB / 0.739 GB, free: 2.609 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001714/0.6276, allocations: 0.8642 MB / 0.7399 GB, free: 1.742 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003542/0.628, allocations: 79.94 kB / 0.74 GB, free: 1.664 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.629, allocations: 191.8 kB / 0.7401 GB, free: 1.477 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003961/0.6294, allocations: 295 kB / 0.7404 GB, free: 1.188 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/0.6296, allocations: 116 kB / 0.7405 GB, free: 1.074 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002612/0.6322, allocations: 2.363 MB / 0.7428 GB, free: 14.72 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.71e-07/0.6322, allocations: 0 / 0.7428 GB, free: 14.72 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003889/0.6361, allocations: 1.453 MB / 0.7443 GB, free: 13.27 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009424/0.6455, allocations: 9.544 MB / 0.7536 GB, free: 3.566 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.1637/0.8092, allocations: 6.276 MB / 0.7597 GB, free: 180.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.8092, allocations: 3.875 kB / 0.7597 GB, free: 180.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003309/0.8125, allocations: 2.911 MB / 0.7626 GB, free: 180.5 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/0.815, allocations: 0.8245 MB / 0.7634 GB, free: 180.2 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.053/0.868, allocations: 48.39 MB / 0.8106 GB, free: 139.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002887/0.8709, allocations: 4.539 MB / 0.815 GB, free: 134.5 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.00279/0.8737, allocations: 1.594 MB / 0.8166 GB, free: 132.9 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001986/0.8757, allocations: 2.773 MB / 0.8193 GB, free: 130.1 MB / 0.4949 GB Notification: Performance of SimCode: time 1.813e-06/0.8757, allocations: 4 kB / 0.8193 GB, free: 130.1 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1054/0.9811, allocations: 115.6 MB / 0.9322 GB, free: 15.25 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/12.48, allocations: 11.14 kB / 0.9322 GB, free: 15.24 MB / 0.4949 GB " [Timeout remaining time 647] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.749796242453158] Failed to read output from testmodel.py, exit status != 0: 12.607470113784075 12.775474561 12.667861763 Calling exit ...