Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.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.001268/0.001268, allocations: 105 kB / 16.45 MB, free: 6.445 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.45/1.45, allocations: 225.6 MB / 244.8 MB, free: 14.16 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.001527/0.001527, allocations: 198.2 kB / 299.8 MB, free: 9.82 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.04117/0.04117, allocations: 8.926 MB / 363.6 MB, free: 10.17 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.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002396/0.002396, allocations: 81.03 kB / 486.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1161, allocations: 54.41 MB / 0.5278 GB, free: 1.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02872/0.1448, allocations: 24.98 MB / 0.5522 GB, free: 8.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01794/0.1627, allocations: 8.023 MB / 0.56 GB, free: 208 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007433/0.1702, allocations: 179.5 kB / 0.5602 GB, free: 28 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02067/0.1908, allocations: 8.467 MB / 0.5685 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0115/0.2023, allocations: 3.038 MB / 0.5714 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006402/0.2087, allocations: 1.816 MB / 0.5732 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01849/0.2272, allocations: 11.12 MB / 0.5841 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03607/0.2633, allocations: 17.4 MB / 0.6011 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01342/0.2767, allocations: 5.938 MB / 0.6069 GB, free: 8 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01464/0.2914, allocations: 6.498 MB / 0.6132 GB, free: 9.488 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006188/0.2976, allocations: 1.715 MB / 0.6149 GB, free: 7.773 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008329/0.3059, allocations: 2.125 MB / 0.617 GB, free: 5.648 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007378/0.3133, allocations: 3.418 MB / 0.6203 GB, free: 2.223 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01552/0.3288, allocations: 6.35 MB / 0.6265 GB, free: 11.85 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3544/0.6832, allocations: 23.16 MB / 0.6491 GB, free: 43.15 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.6832, allocations: 2.875 kB / 0.6491 GB, free: 43.15 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6832, allocations: 0 / 0.6491 GB, free: 43.15 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008285/0.684, allocations: 0 / 0.6491 GB, free: 43.15 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04544/0.7294, allocations: 13.62 MB / 0.6624 GB, free: 37.46 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.7295, allocations: 9.031 kB / 0.6624 GB, free: 37.46 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006698/0.7362, allocations: 1.611 MB / 0.664 GB, free: 37.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03482/0.771, allocations: 6.324 MB / 0.6702 GB, free: 34.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01678/0.7878, allocations: 7.279 MB / 0.6773 GB, free: 30.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000658/0.7884, allocations: 0.7204 MB / 0.678 GB, free: 29.88 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005681/0.7941, allocations: 0.9496 MB / 0.6789 GB, free: 29.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0446/0.8387, allocations: 16.17 MB / 0.6947 GB, free: 15.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003682/0.8391, allocations: 15.69 kB / 0.6947 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004118/0.8432, allocations: 402.3 kB / 0.6951 GB, free: 15 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006149/0.8438, allocations: 0.5632 MB / 0.6957 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02987/0.8737, allocations: 15.12 MB / 0.7104 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1143/0.988, allocations: 52.2 MB / 0.7614 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02399/1.012, allocations: 19.67 MB / 0.7806 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006765/1.019, allocations: 3.328 MB / 0.7839 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004627/1.019, allocations: 177.8 kB / 0.784 GB, free: 1.816 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.113e-05/1.019, allocations: 84.36 kB / 0.7841 GB, free: 1.727 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=447): time 7.184e-06/1.019, allocations: 0 / 0.7841 GB, free: 1.727 MB / 0.5137 GB Notification: Performance of matching and sorting (n=452): time 0.0564/1.076, allocations: 20.72 MB / 0.8043 GB, free: 13 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.618e-05/1.076, allocations: 106.9 kB / 0.8044 GB, free: 12.88 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007498/1.083, allocations: 4.501 MB / 0.8088 GB, free: 8.359 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009391/1.084, allocations: 97.7 kB / 0.8089 GB, free: 8.258 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005684/1.09, allocations: 4.347 MB / 0.8132 GB, free: 3.898 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003196/1.093, allocations: 1.616 MB / 0.8148 GB, free: 2.305 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003298/1.096, allocations: 1.196 MB / 0.8159 GB, free: 1.098 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001719/1.097, allocations: 301.1 kB / 0.8162 GB, free: 0.8008 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008297/1.105, allocations: 3.069 MB / 0.8192 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01113/1.116, allocations: 5.207 MB / 0.8243 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0143/1.13, allocations: 8.871 MB / 0.833 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.689e-05/1.13, allocations: 20 kB / 0.833 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.0197/1.15, allocations: 9.836 MB / 0.8426 GB, free: 4.602 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 6.359e-05/1.15, allocations: 32 kB / 0.8426 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001363/1.15, allocations: 74.3 kB / 0.8427 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004055/1.154, allocations: 1.406 MB / 0.8441 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0058/1.16, allocations: 1.385 MB / 0.8454 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02011/1.18, allocations: 12.68 MB / 0.8578 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005277/1.186, allocations: 355.7 kB / 0.8581 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001054/1.187, allocations: 292 kB / 0.8584 GB, free: 4.285 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01002/1.197, allocations: 3.89 MB / 0.8622 GB, free: 488 kB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.198, allocations: 484.9 kB / 0.8627 GB, free: 0 / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.295/1.493, allocations: 8.471 MB / 0.8709 GB, free: 220.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009662/1.503, allocations: 6.201 MB / 0.877 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.103e-05/1.503, allocations: 11.84 kB / 0.877 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-05/1.503, allocations: 21.84 kB / 0.877 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02975/1.533, allocations: 17.4 MB / 0.894 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.79e-05/1.533, allocations: 7.875 kB / 0.894 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002949/1.535, allocations: 0.8096 MB / 0.8948 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003059/1.539, allocations: 1.286 MB / 0.8961 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003695/1.539, allocations: 103.6 kB / 0.8962 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01337/1.552, allocations: 11.56 MB / 0.9075 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/1.552, allocations: 11.94 kB / 0.9075 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02109/1.573, allocations: 11.18 MB / 0.9184 GB, free: 190 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004321/1.578, allocations: 1.113 MB / 0.9195 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/1.579, allocations: 88.88 kB / 0.9196 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002998/1.582, allocations: 238.5 kB / 0.9198 GB, free: 188.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007681/1.583, allocations: 326.2 kB / 0.9201 GB, free: 188.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000274/1.583, allocations: 139 kB / 0.9202 GB, free: 188.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00469/1.588, allocations: 3.111 MB / 0.9233 GB, free: 185.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/1.588, allocations: 0 / 0.9233 GB, free: 185.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00814/1.596, allocations: 1.727 MB / 0.925 GB, free: 183.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * 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 (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01728/1.613, allocations: 12.2 MB / 0.9369 GB, free: 171.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01181/1.625, allocations: 7.649 MB / 0.9443 GB, free: 163.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/1.625, allocations: 4 kB / 0.9443 GB, free: 163.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006661/1.632, allocations: 3.701 MB / 0.948 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005994/1.638, allocations: 1.033 MB / 0.949 GB, free: 159.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1019/1.74, allocations: 60.81 MB / 1.008 GB, free: 95.81 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007922/1.747, allocations: 6.517 MB / 1.015 GB, free: 89.26 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005703/1.753, allocations: 2.123 MB / 1.017 GB, free: 87.13 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005566/1.759, allocations: 3.549 MB / 1.02 GB, free: 83.58 MB / 0.5919 GB Notification: Performance of SimCode: time 2.564e-06/1.759, allocations: 0 / 1.02 GB, free: 83.58 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5133/2.272, allocations: 140.1 MB / 1.157 GB, free: 176.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.14/23.42, allocations: 13.47 kB / 1.157 GB, free: 176.4 MB / 0.5919 GB " [Timeout remaining time 636] (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 53.379391023889184] Failed to read output from testmodel.py, exit status != 0: 23.801707681268454 23.631443025 22.945773981 Calling exit ...