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.00133/0.00133, allocations: 116.8 kB / 17.16 MB, free: 5.895 MB / 14.72 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 1.423/1.423, allocations: 230.6 MB / 250.5 MB, free: 9.398 MB / 206.1 MB " [Timeout remaining time 178] 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.001754/0.001754, allocations: 207.2 kB / 306.7 MB, free: 4.363 MB / 238.1 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.04133/0.04133, allocations: 8.908 MB / 371.7 MB, free: 3.496 MB / 302.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002905/0.002905, allocations: 83.88 kB / 496.5 MB, free: 9.832 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2878, allocations: 55.57 MB / 0.5391 GB, free: 26.67 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.01924/0.307, allocations: 25.59 MB / 0.5641 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.3244, allocations: 8.063 MB / 0.572 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006127/0.3305, allocations: 201.4 kB / 0.5722 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01818/0.3487, allocations: 7.734 MB / 0.5797 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01246/0.3611, allocations: 3.098 MB / 0.5828 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00727/0.3684, allocations: 2.048 MB / 0.5848 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01576/0.3842, allocations: 9.31 MB / 0.5939 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02653/0.4107, allocations: 12.82 MB / 0.6064 GB, free: 9.074 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00877/0.4195, allocations: 4.859 MB / 0.6111 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00919/0.4286, allocations: 5.346 MB / 0.6163 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003927/0.4326, allocations: 1.359 MB / 0.6177 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005711/0.4383, allocations: 1.734 MB / 0.6194 GB, free: 11.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004849/0.4431, allocations: 2.677 MB / 0.622 GB, free: 9.062 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01118/0.4543, allocations: 5.09 MB / 0.6269 GB, free: 3.953 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02955/0.4839, allocations: 18.23 MB / 0.6447 GB, free: 1.668 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4839, allocations: 0 / 0.6447 GB, free: 1.668 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4839, allocations: 4 kB / 0.6447 GB, free: 1.664 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004854/0.4844, allocations: 0 / 0.6447 GB, free: 1.664 MB / 446.1 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.0378/0.5222, allocations: 10.95 MB / 0.6554 GB, free: 6.598 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.5222, allocations: 19.91 kB / 0.6555 GB, free: 6.578 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003387/0.5225, allocations: 248 kB / 0.6557 GB, free: 6.336 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004252/0.5268, allocations: 1.264 MB / 0.6569 GB, free: 5.062 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0343/0.5611, allocations: 5.676 MB / 0.6625 GB, free: 15.38 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01318/0.5743, allocations: 5.834 MB / 0.6682 GB, free: 9.484 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006653/0.5749, allocations: 0.5781 MB / 0.6687 GB, free: 8.906 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003875/0.5788, allocations: 0.7655 MB / 0.6695 GB, free: 8.141 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.036/0.6148, allocations: 12.82 MB / 0.682 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002788/0.6151, allocations: 11.91 kB / 0.682 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002762/0.6179, allocations: 328 kB / 0.6823 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006523/0.6185, allocations: 0.4967 MB / 0.6828 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5108/1.129, allocations: 12.3 MB / 0.6948 GB, free: 106.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06995/1.199, allocations: 45.2 MB / 0.739 GB, free: 78.82 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02038/1.22, allocations: 24.84 MB / 0.7632 GB, free: 55.13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004814/1.224, allocations: 2.737 MB / 0.7659 GB, free: 53.71 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004365/1.225, allocations: 356 kB / 0.7662 GB, free: 53.38 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003739/1.229, allocations: 2.608 MB / 0.7688 GB, free: 51.76 MB / 494.1 MB Notification: Performance of pre-optimization done (n=399): time 6.342e-06/1.229, allocations: 7.891 kB / 0.7688 GB, free: 51.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=482): time 0.06264/1.291, allocations: 29.28 MB / 0.7974 GB, free: 28.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02526/1.317, allocations: 18.93 MB / 0.8159 GB, free: 9.426 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00456/1.321, allocations: 3.532 MB / 0.8193 GB, free: 5.934 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007009/1.322, allocations: 105.7 kB / 0.8194 GB, free: 5.824 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001507/1.323, allocations: 3.496 MB / 0.8228 GB, free: 2.426 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001445/1.325, allocations: 1.709 MB / 0.8245 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002092/1.327, allocations: 1.212 MB / 0.8257 GB, free: 15.52 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.327, allocations: 305.1 kB / 0.826 GB, free: 15.21 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005363/1.332, allocations: 2.999 MB / 0.8289 GB, free: 12.21 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0078/1.34, allocations: 5.013 MB / 0.8338 GB, free: 6.316 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01413/1.354, allocations: 8.502 MB / 0.8421 GB, free: 12.89 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.251e-05/1.354, allocations: 20 kB / 0.8421 GB, free: 12.87 MB / 0.5138 GB Notification: Performance of matching and sorting (n=807) (initialization): time 0.02248/1.377, allocations: 10.13 MB / 0.852 GB, free: 2.645 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.294e-05/1.377, allocations: 57.7 kB / 0.8521 GB, free: 2.582 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/1.377, allocations: 60 kB / 0.8521 GB, free: 2.523 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006261/1.383, allocations: 2.008 MB / 0.8541 GB, free: 0.5156 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005832/1.389, allocations: 1.33 MB / 0.8554 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03029/1.419, allocations: 18.4 MB / 0.8734 GB, free: 12.51 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005335/1.425, allocations: 399.5 kB / 0.8737 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/1.426, allocations: 295.9 kB / 0.874 GB, free: 11.83 MB / 0.545 GB 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 (693): * Single equations (assignments): 690 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(10,48,53.0%), (10,48,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00613/1.432, allocations: 2.989 MB / 0.8769 GB, free: 8.82 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001307/1.433, allocations: 441.2 kB / 0.8774 GB, free: 8.387 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01826/1.452, allocations: 8.169 MB / 0.8853 GB, free: 176 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.575e-05/1.452, allocations: 48 kB / 0.8854 GB, free: 128 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-05/1.452, allocations: 12 kB / 0.8854 GB, free: 116 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001189/1.452, allocations: 23.91 kB / 0.8854 GB, free: 92 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04763/1.499, allocations: 22.6 MB / 0.9075 GB, free: 9.355 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.081e-05/1.5, allocations: 0 / 0.9075 GB, free: 9.355 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/1.503, allocations: 0.7334 MB / 0.9082 GB, free: 8.621 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006313/1.509, allocations: 1.935 MB / 0.9101 GB, free: 6.676 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000824/1.51, allocations: 108 kB / 0.9102 GB, free: 6.57 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2574/1.768, allocations: 17.07 MB / 0.9269 GB, free: 186 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0235/1.791, allocations: 17.21 MB / 0.9437 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02343/1.814, allocations: 11.33 MB / 0.9547 GB, free: 171.2 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002785/1.817, allocations: 1.047 MB / 0.9558 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001086/1.818, allocations: 90.52 kB / 0.9558 GB, free: 170.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003007/1.821, allocations: 221.7 kB / 0.9561 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001116/1.822, allocations: 343.8 kB / 0.9564 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003854/1.823, allocations: 137.9 kB / 0.9565 GB, free: 170.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004311/1.827, allocations: 2.367 MB / 0.9588 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.7e-07/1.827, allocations: 0 / 0.9588 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008094/1.835, allocations: 1.705 MB / 0.9605 GB, free: 169.5 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 3 ($STATESET1.x,smee.rotorCage.port_p.reference.gamma,voltageSource.plug_p.reference.gamma) * 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 (396): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,40,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,56)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01846/1.854, allocations: 12.06 MB / 0.9723 GB, free: 164 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01408/1.868, allocations: 7.93 MB / 0.98 GB, free: 160.2 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.868, allocations: 2 kB / 0.98 GB, free: 160.2 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.008321/1.876, allocations: 4.076 MB / 0.984 GB, free: 156.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006081/1.882, allocations: 0.8353 MB / 0.9848 GB, free: 155.9 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08881/1.971, allocations: 54.67 MB / 1.038 GB, free: 100.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005477/1.976, allocations: 5.209 MB / 1.043 GB, free: 95.39 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004201/1.981, allocations: 1.64 MB / 1.045 GB, free: 93.75 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003989/1.985, allocations: 2.901 MB / 1.048 GB, free: 90.85 MB / 0.5763 GB Notification: Performance of SimCode: time 9.12e-07/1.985, allocations: 0 / 1.048 GB, free: 90.85 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4306/2.415, allocations: 135 MB / 1.18 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.52/25.93, allocations: 8.812 kB / 1.18 GB, free: 168.9 MB / 0.5763 GB " [Timeout remaining time 634] (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: 28.915907818998676] Failed to read output from testmodel.py, exit status != 0: 26.15570026100613 26.165396652 25.67889288 Calling exit ...