Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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.000852/0.000852, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.9035/0.9035, allocations: 177.1 MB / 199.4 MB, free: 5.938 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.001001/0.001001, allocations: 164.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.02218/0.02218, allocations: 6.663 MB / 319 MB, free: 26.77 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_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 445.4 MB, free: 37.6 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.296e-05/1.419e-05, allocations: 6.219 kB / 445.5 MB, free: 37.59 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.01308/0.01309, allocations: 22.04 MB / 467.5 MB, free: 15.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01113/0.02422, allocations: 7.703 MB / 475.2 MB, free: 7.719 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002461/0.02668, allocations: 203.1 kB / 475.4 MB, free: 7.52 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006638/0.03331, allocations: 7.554 MB / 482.9 MB, free: 15.95 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00575/0.03906, allocations: 3.173 MB / 486.1 MB, free: 12.76 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002706/0.04177, allocations: 2.012 MB / 488.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007778/0.04955, allocations: 9.7 MB / 497.8 MB, free: 1.02 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01102/0.06057, allocations: 11.23 MB / 0.4971 GB, free: 5.656 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007167/0.06774, allocations: 7.133 MB / 0.5041 GB, free: 14.51 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00446/0.0722, allocations: 4.518 MB / 0.5085 GB, free: 9.984 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001588/0.07379, allocations: 1.355 MB / 0.5098 GB, free: 8.629 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002327/0.07611, allocations: 1.753 MB / 0.5115 GB, free: 6.875 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.07797, allocations: 2.719 MB / 0.5142 GB, free: 4.148 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003241/0.08121, allocations: 3.419 MB / 0.5175 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01368/0.09489, allocations: 18.48 MB / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.0949, allocations: 0 / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.0949, allocations: 0 / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003057/0.09521, allocations: 0 / 0.5356 GB, free: 14.19 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.01818/0.1134, allocations: 10.8 MB / 0.5461 GB, free: 3.312 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.1134, allocations: 19.95 kB / 0.5461 GB, free: 3.293 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001913/0.1154, allocations: 1.264 MB / 0.5474 GB, free: 2.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01911/0.1345, allocations: 5.68 MB / 0.5529 GB, free: 12.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009321/0.1438, allocations: 5.837 MB / 0.5586 GB, free: 6.422 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003176/0.1441, allocations: 0.5819 MB / 0.5592 GB, free: 5.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0015/0.1456, allocations: 0.7694 MB / 0.5599 GB, free: 5.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3257/0.4713, allocations: 12.97 MB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.4714, allocations: 14.11 kB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005777/0.472, allocations: 325 kB / 0.5729 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002997/0.4723, allocations: 0.492 MB / 0.5734 GB, free: 103.4 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01316/0.4855, allocations: 12.24 MB / 0.5854 GB, free: 97.12 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03195/0.5174, allocations: 38 MB / 0.6225 GB, free: 59.08 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008602/0.526, allocations: 8.922 MB / 0.6312 GB, free: 51.16 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002223/0.5282, allocations: 2.71 MB / 0.6338 GB, free: 48.45 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001695/0.5284, allocations: 98.97 kB / 0.6339 GB, free: 48.36 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002052/0.5305, allocations: 2.791 MB / 0.6367 GB, free: 45.45 MB / 426.8 MB Notification: Performance of pre-optimization done (n=391): time 6.222e-06/0.5305, allocations: 3.938 kB / 0.6367 GB, free: 45.45 MB / 426.8 MB Notification: Performance of matching and sorting (n=397): time 0.02039/0.5509, allocations: 18.34 MB / 0.6546 GB, free: 27.36 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.5509, allocations: 355.5 kB / 0.6549 GB, free: 26.93 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003204/0.5541, allocations: 3.642 MB / 0.6585 GB, free: 23.38 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/0.5543, allocations: 93.7 kB / 0.6586 GB, free: 23.28 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/0.5554, allocations: 3.486 MB / 0.662 GB, free: 19.89 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006696/0.5561, allocations: 1.397 MB / 0.6633 GB, free: 18.51 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009516/0.557, allocations: 1.089 MB / 0.6644 GB, free: 17.41 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 2.644e-05/0.5571, allocations: 309.1 kB / 0.6647 GB, free: 17.11 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002193/0.5592, allocations: 2.581 MB / 0.6672 GB, free: 14.52 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002779/0.562, allocations: 4.721 MB / 0.6718 GB, free: 8.863 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005301/0.5673, allocations: 7.463 MB / 0.6791 GB, free: 0.5273 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-05/0.5673, allocations: 20 kB / 0.6791 GB, free: 0.5078 MB / 426.8 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.009807/0.5772, allocations: 8.319 MB / 0.6872 GB, free: 8.156 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.656e-05/0.5772, allocations: 61.69 kB / 0.6873 GB, free: 8.09 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.528e-05/0.5773, allocations: 64 kB / 0.6874 GB, free: 8.027 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001666/0.579, allocations: 0.9928 MB / 0.6883 GB, free: 7.035 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/0.5812, allocations: 1.267 MB / 0.6896 GB, free: 5.766 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008882/0.5901, allocations: 8.567 MB / 0.6979 GB, free: 13.09 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002804/0.5929, allocations: 355.5 kB / 0.6983 GB, free: 12.74 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003199/0.5932, allocations: 268 kB / 0.6985 GB, free: 12.48 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.004029/0.5973, allocations: 2.902 MB / 0.7014 GB, free: 9.559 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008259/0.5981, allocations: 413.4 kB / 0.7018 GB, free: 9.152 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007985/0.6061, allocations: 6.169 MB / 0.7078 GB, free: 2.922 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.729e-05/0.6061, allocations: 40.19 kB / 0.7078 GB, free: 2.883 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.112e-05/0.6061, allocations: 12 kB / 0.7078 GB, free: 2.871 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-05/0.6062, allocations: 23.86 kB / 0.7079 GB, free: 2.848 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01795/0.6241, allocations: 13.98 MB / 0.7215 GB, free: 4.801 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.6241, allocations: 4 kB / 0.7215 GB, free: 4.797 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/0.6256, allocations: 0.6909 MB / 0.7222 GB, free: 4.105 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001485/0.6271, allocations: 0.8755 MB / 0.723 GB, free: 3.227 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002251/0.6273, allocations: 91.97 kB / 0.7231 GB, free: 3.137 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007758/0.635, allocations: 7.499 MB / 0.7305 GB, free: 11.54 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/0.6351, allocations: 8.094 kB / 0.7305 GB, free: 11.53 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01009/0.6451, allocations: 8.835 MB / 0.7391 GB, free: 2.555 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002048/0.6472, allocations: 0.8642 MB / 0.7399 GB, free: 1.688 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003768/0.6476, allocations: 79.94 kB / 0.74 GB, free: 1.609 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.6486, allocations: 191.8 kB / 0.7402 GB, free: 1.422 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003927/0.649, allocations: 291 kB / 0.7405 GB, free: 1.137 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/0.6492, allocations: 120 kB / 0.7406 GB, free: 1.02 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00273/0.6519, allocations: 2.364 MB / 0.7429 GB, free: 14.66 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6519, allocations: 0 / 0.7429 GB, free: 14.66 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003939/0.6558, allocations: 1.461 MB / 0.7443 GB, free: 13.2 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.009476/0.6653, allocations: 9.542 MB / 0.7536 GB, free: 3.508 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.1824/0.8477, allocations: 6.267 MB / 0.7598 GB, free: 180.7 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/0.8478, allocations: 3.875 kB / 0.7598 GB, free: 180.7 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003961/0.8517, allocations: 2.916 MB / 0.7626 GB, free: 180.3 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/0.8545, allocations: 0.8212 MB / 0.7634 GB, free: 180 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05081/0.9053, allocations: 48.4 MB / 0.8107 GB, free: 138.9 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002777/0.908, allocations: 4.54 MB / 0.8151 GB, free: 134.3 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.00241/0.9105, allocations: 1.594 MB / 0.8167 GB, free: 132.7 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001924/0.9124, allocations: 2.773 MB / 0.8194 GB, free: 129.9 MB / 0.4949 GB Notification: Performance of SimCode: time 3.757e-06/0.9124, allocations: 0 / 0.8194 GB, free: 129.9 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1068/1.019, allocations: 115.6 MB / 0.9322 GB, free: 15.06 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/11.35, allocations: 14.61 kB / 0.9322 GB, free: 15.05 MB / 0.4949 GB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2_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_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.627191556617618] Failed to read output from testmodel.py, exit status != 0: 11.486388265155256 11.639508026 11.542953016 Calling exit ...