Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 107.6 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 225.6 MB / 244.8 MB, free: 14.15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 198.2 kB / 299.8 MB, free: 9.809 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04134/0.04134, allocations: 8.928 MB / 363.6 MB, free: 10.16 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002445/0.002445, allocations: 83.53 kB / 486.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1166, allocations: 54.41 MB / 0.5278 GB, free: 1.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.03184/0.1485, allocations: 25.53 MB / 0.5528 GB, free: 7.516 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.1672, allocations: 8.056 MB / 0.5606 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005367/0.1725, allocations: 171.6 kB / 0.5608 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01524/0.1878, allocations: 6.166 MB / 0.5668 GB, free: 9.086 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008899/0.1967, allocations: 2.797 MB / 0.5695 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005223/0.2019, allocations: 1.632 MB / 0.5711 GB, free: 4.648 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.2128, allocations: 7.27 MB / 0.5782 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0186/0.2314, allocations: 10.13 MB / 0.5881 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007539/0.239, allocations: 3.748 MB / 0.5918 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008256/0.2472, allocations: 4.271 MB / 0.596 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003798/0.251, allocations: 1.078 MB / 0.597 GB, free: 9.977 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004925/0.256, allocations: 1.421 MB / 0.5984 GB, free: 8.555 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003364/0.2593, allocations: 2.155 MB / 0.6005 GB, free: 6.395 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007366/0.2667, allocations: 4.113 MB / 0.6045 GB, free: 2.266 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01861/0.2853, allocations: 14.47 MB / 0.6187 GB, free: 3.746 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.2853, allocations: 0 / 0.6187 GB, free: 3.746 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2853, allocations: 4 kB / 0.6187 GB, free: 3.742 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003305/0.2856, allocations: 0 / 0.6187 GB, free: 3.742 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02649/0.3121, allocations: 8.929 MB / 0.6274 GB, free: 10.72 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.3122, allocations: 8.031 kB / 0.6274 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00319/0.3154, allocations: 1.052 MB / 0.6284 GB, free: 9.648 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02529/0.3407, allocations: 4.436 MB / 0.6328 GB, free: 5.203 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01162/0.3523, allocations: 4.634 MB / 0.6373 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004749/0.3527, allocations: 485.1 kB / 0.6377 GB, free: 32 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2158/0.5685, allocations: 0.6254 MB / 0.6383 GB, free: 86.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02167/0.5902, allocations: 10.36 MB / 0.6485 GB, free: 83.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001664/0.5904, allocations: 7.406 kB / 0.6485 GB, free: 83.33 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000742/0.5911, allocations: 270.9 kB / 0.6487 GB, free: 83.13 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002981/0.5914, allocations: 417.5 kB / 0.6491 GB, free: 83.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01641/0.6078, allocations: 9.877 MB / 0.6588 GB, free: 78.89 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0459/0.6537, allocations: 35.4 MB / 0.6933 GB, free: 43.81 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/0.6666, allocations: 20.39 MB / 0.7133 GB, free: 20.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002841/0.6695, allocations: 2.115 MB / 0.7153 GB, free: 18.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000225/0.6697, allocations: 228.1 kB / 0.7155 GB, free: 18.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.34e-05/0.6698, allocations: 64.89 kB / 0.7156 GB, free: 18.37 MB / 446.1 MB Notification: Performance of pre-optimization done (n=295): time 6.522e-06/0.6698, allocations: 3.938 kB / 0.7156 GB, free: 18.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=301): time 0.01628/0.686, allocations: 10.94 MB / 0.7263 GB, free: 7.598 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.6861, allocations: 85.77 kB / 0.7264 GB, free: 7.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003476/0.6896, allocations: 3.028 MB / 0.7293 GB, free: 4.496 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003274/0.6899, allocations: 77.7 kB / 0.7294 GB, free: 4.414 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.6912, allocations: 2.968 MB / 0.7323 GB, free: 1.582 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008066/0.692, allocations: 1.076 MB / 0.7333 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001292/0.6933, allocations: 0.9161 MB / 0.7342 GB, free: 15.59 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.6934, allocations: 301.1 kB / 0.7345 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00314/0.6965, allocations: 2.024 MB / 0.7365 GB, free: 13.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004702/0.7012, allocations: 3.728 MB / 0.7401 GB, free: 8.746 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008197/0.7094, allocations: 6.051 MB / 0.7461 GB, free: 1.895 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.575e-05/0.7095, allocations: 16 kB / 0.7461 GB, free: 1.879 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01174/0.7212, allocations: 6.623 MB / 0.7525 GB, free: 11.22 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.892e-05/0.7213, allocations: 28 kB / 0.7526 GB, free: 11.19 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001151/0.7214, allocations: 56 kB / 0.7526 GB, free: 11.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001983/0.7234, allocations: 0.672 MB / 0.7533 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004046/0.7274, allocations: 1.065 MB / 0.7543 GB, free: 9.398 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009598/0.737, allocations: 6.229 MB / 0.7604 GB, free: 3.023 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003424/0.7404, allocations: 279.7 kB / 0.7607 GB, free: 2.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006985/0.7411, allocations: 228 kB / 0.7609 GB, free: 2.527 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00454/0.7457, allocations: 2.311 MB / 0.7631 GB, free: 208 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008948/0.7466, allocations: 337.9 kB / 0.7635 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008473/0.755, allocations: 4.618 MB / 0.768 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.304e-05/0.7551, allocations: 31.94 kB / 0.768 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/0.7551, allocations: 8 kB / 0.768 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-05/0.7551, allocations: 19.92 kB / 0.768 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02151/0.7766, allocations: 11.07 MB / 0.7788 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/0.7766, allocations: 4 kB / 0.7788 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002092/0.7787, allocations: 0.5311 MB / 0.7794 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001606/0.7803, allocations: 0.5662 MB / 0.7799 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002577/0.7806, allocations: 71.97 kB / 0.78 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007906/0.7885, allocations: 5.474 MB / 0.7853 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.7885, allocations: 11.88 kB / 0.7853 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/0.8001, allocations: 6.573 MB / 0.7918 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002321/0.8024, allocations: 0.7485 MB / 0.7925 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008313/0.8032, allocations: 56 kB / 0.7925 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001951/0.8052, allocations: 147.8 kB / 0.7927 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004993/0.8057, allocations: 206 kB / 0.7929 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000277/0.8059, allocations: 91.98 kB / 0.793 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003819/0.8098, allocations: 2.013 MB / 0.7949 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.8098, allocations: 0 / 0.7949 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004412/0.8142, allocations: 1.176 MB / 0.7961 GB, free: 13.98 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01179/0.826, allocations: 7.26 MB / 0.8032 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009788/0.8357, allocations: 4.827 MB / 0.8079 GB, free: 1.699 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.8358, allocations: 0.5 kB / 0.8079 GB, free: 1.699 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004828/0.8406, allocations: 2.105 MB / 0.8099 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005469/0.8461, allocations: 0.6524 MB / 0.8106 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08089/0.9269, allocations: 39.02 MB / 0.8487 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006568/0.9335, allocations: 4.154 MB / 0.8527 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003957/0.9375, allocations: 1.326 MB / 0.854 GB, free: 388 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2235/1.161, allocations: 2.241 MB / 0.8562 GB, free: 199.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.533e-06/1.161, allocations: 0 / 0.8562 GB, free: 199.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1727/1.334, allocations: 89.24 MB / 0.9434 GB, free: 130.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.68/19.01, allocations: 2.656 kB / 0.9434 GB, free: 130.2 MB / 0.5606 GB " [Timeout remaining time 641] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 27.1729584033601] Failed to read output from testmodel.py, exit status != 0: 19.33624042617157 19.152876045 18.865099714 Calling exit ...