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.0008166/0.0008166, 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.9188/0.9188, allocations: 177.1 MB / 199.4 MB, free: 5.934 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.00114/0.00114, 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.02355/0.02355, allocations: 6.664 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.483e-06/1.483e-06, allocations: 0 / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.699e-05/1.848e-05, allocations: 10.16 kB / 445.5 MB, free: 37.58 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.01248/0.0125, allocations: 22.03 MB / 467.5 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009788/0.02229, allocations: 7.699 MB / 475.2 MB, free: 7.719 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003086/0.02538, allocations: 207 kB / 475.4 MB, free: 7.516 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007134/0.03251, allocations: 7.557 MB / 482.9 MB, free: 15.94 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006278/0.03879, allocations: 3.167 MB / 486.1 MB, free: 12.76 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003195/0.04198, allocations: 2.022 MB / 488.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007595/0.04958, allocations: 9.696 MB / 497.8 MB, free: 1.012 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01086/0.06044, allocations: 11.22 MB / 0.4971 GB, free: 5.656 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007292/0.06773, allocations: 7.141 MB / 0.5041 GB, free: 14.5 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004075/0.07181, allocations: 4.522 MB / 0.5085 GB, free: 9.973 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001286/0.07309, allocations: 1.352 MB / 0.5098 GB, free: 8.621 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001876/0.07497, allocations: 1.745 MB / 0.5115 GB, free: 6.875 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001367/0.07634, allocations: 2.723 MB / 0.5142 GB, free: 4.145 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003327/0.07966, allocations: 3.415 MB / 0.5175 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.09289, allocations: 18.49 MB / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.09289, allocations: 0 / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.0929, allocations: 0 / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000218/0.09311, allocations: 3.938 kB / 0.5356 GB, free: 14.18 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.01773/0.1108, allocations: 10.79 MB / 0.5461 GB, free: 3.305 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.1109, allocations: 12.03 kB / 0.5461 GB, free: 3.293 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001554/0.1124, allocations: 1.272 MB / 0.5474 GB, free: 2.012 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01609/0.1285, allocations: 5.672 MB / 0.5529 GB, free: 12.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008923/0.1375, allocations: 5.84 MB / 0.5586 GB, free: 6.418 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002968/0.1378, allocations: 0.582 MB / 0.5592 GB, free: 5.836 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00119/0.1389, allocations: 0.7655 MB / 0.5599 GB, free: 5.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.324/0.463, allocations: 12.98 MB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001717/0.4632, allocations: 15.83 kB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001646/0.4648, allocations: 324.2 kB / 0.5729 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004136/0.4652, allocations: 0.498 MB / 0.5734 GB, free: 103.4 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01797/0.4832, allocations: 12.23 MB / 0.5854 GB, free: 97.1 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0458/0.529, allocations: 38.01 MB / 0.6225 GB, free: 59.05 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009665/0.5387, allocations: 8.912 MB / 0.6312 GB, free: 51.13 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003043/0.5417, allocations: 2.717 MB / 0.6338 GB, free: 48.43 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002749/0.542, allocations: 98.97 kB / 0.6339 GB, free: 48.33 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002556/0.5445, allocations: 2.787 MB / 0.6367 GB, free: 45.42 MB / 426.8 MB Notification: Performance of pre-optimization done (n=391): time 6.141e-06/0.5445, allocations: 0 / 0.6367 GB, free: 45.42 MB / 426.8 MB Notification: Performance of matching and sorting (n=397): time 0.02387/0.5684, allocations: 18.35 MB / 0.6546 GB, free: 27.33 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.697e-05/0.5685, allocations: 351.5 kB / 0.6549 GB, free: 26.91 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003269/0.5718, allocations: 3.652 MB / 0.6585 GB, free: 23.35 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002868/0.572, allocations: 93.7 kB / 0.6586 GB, free: 23.25 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.573, allocations: 3.478 MB / 0.662 GB, free: 19.87 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006379/0.5737, allocations: 1.405 MB / 0.6633 GB, free: 18.48 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009797/0.5747, allocations: 1.081 MB / 0.6644 GB, free: 17.39 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 3.274e-05/0.5747, allocations: 309.1 kB / 0.6647 GB, free: 17.09 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002321/0.577, allocations: 2.581 MB / 0.6672 GB, free: 14.49 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002889/0.5799, allocations: 4.717 MB / 0.6718 GB, free: 8.844 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005484/0.5854, allocations: 7.471 MB / 0.6791 GB, free: 0.5 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.475e-05/0.5854, allocations: 16 kB / 0.6791 GB, free: 496 kB / 426.8 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01033/0.5958, allocations: 8.32 MB / 0.6872 GB, free: 8.129 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.514e-05/0.5958, allocations: 61.77 kB / 0.6873 GB, free: 8.062 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.379e-05/0.5959, allocations: 64 kB / 0.6874 GB, free: 8 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001715/0.5976, allocations: 0.9925 MB / 0.6883 GB, free: 7.008 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002378/0.6, allocations: 1.267 MB / 0.6896 GB, free: 5.738 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008741/0.6088, allocations: 8.563 MB / 0.6979 GB, free: 13.07 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002945/0.6117, allocations: 351.5 kB / 0.6983 GB, free: 12.72 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005243/0.6122, allocations: 271.9 kB / 0.6985 GB, free: 12.46 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.004028/0.6163, allocations: 2.898 MB / 0.7014 GB, free: 9.539 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007656/0.617, allocations: 417.4 kB / 0.7018 GB, free: 9.129 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007317/0.6243, allocations: 6.173 MB / 0.7078 GB, free: 2.895 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.181e-05/0.6244, allocations: 40.19 kB / 0.7078 GB, free: 2.855 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/0.6244, allocations: 12 kB / 0.7078 GB, free: 2.844 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.529e-05/0.6244, allocations: 27.84 kB / 0.7079 GB, free: 2.816 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01703/0.6414, allocations: 13.97 MB / 0.7215 GB, free: 4.785 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.6414, allocations: 15.97 kB / 0.7215 GB, free: 4.77 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/0.6429, allocations: 0.6865 MB / 0.7222 GB, free: 4.082 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/0.6445, allocations: 0.8716 MB / 0.723 GB, free: 3.207 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002232/0.6447, allocations: 91.97 kB / 0.7231 GB, free: 3.117 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007429/0.6522, allocations: 7.504 MB / 0.7305 GB, free: 11.52 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.6522, allocations: 8.031 kB / 0.7305 GB, free: 11.51 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009806/0.662, allocations: 8.839 MB / 0.7391 GB, free: 2.531 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/0.6638, allocations: 0.8642 MB / 0.7399 GB, free: 1.664 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004301/0.6643, allocations: 75.98 kB / 0.74 GB, free: 1.59 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.6654, allocations: 187.8 kB / 0.7402 GB, free: 1.406 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004465/0.6659, allocations: 295 kB / 0.7405 GB, free: 1.117 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/0.666, allocations: 120 kB / 0.7406 GB, free: 1 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.003078/0.6691, allocations: 2.367 MB / 0.7429 GB, free: 14.64 MB / 0.4949 GB Notification: Performance of sort global known variables: time 3.31e-07/0.6691, allocations: 0 / 0.7429 GB, free: 14.64 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003782/0.6729, allocations: 1.453 MB / 0.7443 GB, free: 13.19 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.01006/0.6829, allocations: 9.536 MB / 0.7536 GB, free: 3.496 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.1736/0.8565, allocations: 6.282 MB / 0.7598 GB, free: 180.6 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/0.8565, allocations: 2.625 kB / 0.7598 GB, free: 180.6 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004813/0.8613, allocations: 2.911 MB / 0.7626 GB, free: 180.2 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003148/0.8645, allocations: 0.8238 MB / 0.7634 GB, free: 179.9 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06588/0.9304, allocations: 48.4 MB / 0.8107 GB, free: 138.8 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003842/0.9342, allocations: 4.532 MB / 0.8151 GB, free: 134.2 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.003029/0.9372, allocations: 1.59 MB / 0.8167 GB, free: 132.6 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002644/0.9399, allocations: 2.777 MB / 0.8194 GB, free: 129.8 MB / 0.4949 GB Notification: Performance of SimCode: time 1.543e-06/0.9399, allocations: 0 / 0.8194 GB, free: 129.8 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1135/1.053, allocations: 115.6 MB / 0.9322 GB, free: 14.97 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.91, allocations: 3.938 kB / 0.9322 GB, free: 14.96 MB / 0.4949 GB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.252596283331513] Failed to read output from testmodel.py, exit status != 0: 12.045449251309037 12.213595836 12.118714251 Calling exit ...