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.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.0007935/0.0007935, allocations: 80.44 kB / 19.17 MB, free: 0.7344 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.9315/0.9315, allocations: 177.1 MB / 199.4 MB, free: 5.957 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.001075/0.001075, allocations: 155.5 kB / 256 MB, free: 13.37 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.02225/0.02225, allocations: 6.662 MB / 319 MB, free: 26.8 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.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 1.453e-06/1.453e-06, allocations: 0 / 445.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.498e-06/1.095e-05, allocations: 2.281 kB / 445.4 MB, free: 37.64 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.01326/0.01327, allocations: 21.53 MB / 466.9 MB, free: 16.02 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01174/0.02501, allocations: 7.905 MB / 474.8 MB, free: 8.086 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002687/0.0277, allocations: 210.9 kB / 475.1 MB, free: 7.879 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006853/0.03455, allocations: 8.265 MB / 483.3 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005127/0.03968, allocations: 3.146 MB / 486.5 MB, free: 12.43 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00254/0.04222, allocations: 1.829 MB / 488.3 MB, free: 10.61 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008677/0.0509, allocations: 11.7 MB / 500 MB, free: 14.87 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01407/0.06497, allocations: 14.51 MB / 0.5024 GB, free: 216 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009476/0.07445, allocations: 8.901 MB / 0.5111 GB, free: 7.297 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006577/0.08102, allocations: 5.633 MB / 0.5166 GB, free: 1.652 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002804/0.08383, allocations: 1.715 MB / 0.5183 GB, free: 15.93 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003106/0.08693, allocations: 2.151 MB / 0.5204 GB, free: 13.79 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002202/0.08914, allocations: 3.472 MB / 0.5238 GB, free: 10.3 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00522/0.09436, allocations: 4.234 MB / 0.5279 GB, free: 6.062 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.215/0.3094, allocations: 23.5 MB / 0.5509 GB, free: 43.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/0.3094, allocations: 1.812 kB / 0.5509 GB, free: 43.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3094, allocations: 0 / 0.5509 GB, free: 43.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005974/0.31, allocations: 0 / 0.5509 GB, free: 43.82 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03068/0.3406, allocations: 13.46 MB / 0.564 GB, free: 40.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.3407, allocations: 11.83 kB / 0.564 GB, free: 40.39 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005446/0.3461, allocations: 1.618 MB / 0.5656 GB, free: 40.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01905/0.3652, allocations: 6.258 MB / 0.5717 GB, free: 39.63 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01308/0.3783, allocations: 7.374 MB / 0.5789 GB, free: 38.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005625/0.3788, allocations: 0.7271 MB / 0.5796 GB, free: 38.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003779/0.3826, allocations: 0.9508 MB / 0.5806 GB, free: 38.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0303/0.4129, allocations: 16.35 MB / 0.5965 GB, free: 24.44 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002521/0.4132, allocations: 11.52 kB / 0.5966 GB, free: 24.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002471/0.4156, allocations: 413.2 kB / 0.5969 GB, free: 24.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002925/0.4159, allocations: 0.5631 MB / 0.5975 GB, free: 23.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02298/0.4389, allocations: 15.08 MB / 0.6122 GB, free: 8.375 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07329/0.5122, allocations: 47.18 MB / 0.6583 GB, free: 9.172 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01147/0.5237, allocations: 8.539 MB / 0.6666 GB, free: 1.414 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003786/0.5275, allocations: 3.33 MB / 0.6699 GB, free: 14.09 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002686/0.5277, allocations: 115.4 kB / 0.67 GB, free: 13.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/0.5278, allocations: 78.06 kB / 0.6701 GB, free: 13.89 MB / 474.7 MB Notification: Performance of pre-optimization done (n=447): time 5.079e-06/0.5278, allocations: 0 / 0.6701 GB, free: 13.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=452): time 0.03661/0.5644, allocations: 20.44 MB / 0.69 GB, free: 9.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.5645, allocations: 106.6 kB / 0.6901 GB, free: 9.387 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005273/0.5697, allocations: 4.63 MB / 0.6947 GB, free: 4.734 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006401/0.5704, allocations: 93.7 kB / 0.6947 GB, free: 4.637 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002096/0.5725, allocations: 4.341 MB / 0.699 GB, free: 292 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001528/0.574, allocations: 1.591 MB / 0.7005 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001526/0.5755, allocations: 1.2 MB / 0.7017 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.637e-05/0.5756, allocations: 304.9 kB / 0.702 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003408/0.579, allocations: 3.061 MB / 0.705 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004579/0.5836, allocations: 5.239 MB / 0.7101 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009108/0.5927, allocations: 8.872 MB / 0.7188 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.317e-05/0.5928, allocations: 24 kB / 0.7188 GB, free: 10.37 MB / 0.5105 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01354/0.6063, allocations: 9.841 MB / 0.7284 GB, free: 0.9609 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/0.6064, allocations: 36.34 kB / 0.7284 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/0.6065, allocations: 75.98 kB / 0.7285 GB, free: 0.8516 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002383/0.6089, allocations: 1.37 MB / 0.7298 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003323/0.6122, allocations: 1.394 MB / 0.7312 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/0.6244, allocations: 12.1 MB / 0.743 GB, free: 1.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003727/0.6281, allocations: 355.6 kB / 0.7434 GB, free: 1.562 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007329/0.6289, allocations: 303.9 kB / 0.7437 GB, free: 1.266 MB / 0.5261 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.2015/0.8304, allocations: 3.877 MB / 0.7474 GB, free: 197.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001015/0.8314, allocations: 486.4 kB / 0.7479 GB, free: 197.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00876/0.8402, allocations: 8.447 MB / 0.7562 GB, free: 195.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006234/0.8464, allocations: 6.203 MB / 0.7622 GB, free: 192.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/0.8464, allocations: 19.41 kB / 0.7622 GB, free: 192.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.219e-05/0.8464, allocations: 32.45 kB / 0.7623 GB, free: 192.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0212/0.8676, allocations: 16.61 MB / 0.7785 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/0.8677, allocations: 8 kB / 0.7785 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/0.8696, allocations: 0.8134 MB / 0.7793 GB, free: 183.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002055/0.8716, allocations: 1.255 MB / 0.7805 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004329/0.8721, allocations: 114.7 kB / 0.7806 GB, free: 182.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008525/0.8806, allocations: 11.03 MB / 0.7914 GB, free: 172.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/0.8806, allocations: 11.94 kB / 0.7914 GB, free: 172.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01094/0.8915, allocations: 11.15 MB / 0.8023 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002169/0.8937, allocations: 1.064 MB / 0.8033 GB, free: 160.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006009/0.8943, allocations: 88 kB / 0.8034 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.8956, allocations: 233.3 kB / 0.8036 GB, free: 160.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000498/0.8961, allocations: 351.2 kB / 0.804 GB, free: 160.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/0.8963, allocations: 140 kB / 0.8041 GB, free: 160.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003857/0.9002, allocations: 3.108 MB / 0.8071 GB, free: 157 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.91e-07/0.9002, allocations: 0 / 0.8071 GB, free: 157 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006126/0.9063, allocations: 1.73 MB / 0.8088 GB, free: 155.3 MB / 0.5261 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.01156/0.9178, allocations: 12.18 MB / 0.8207 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009131/0.927, allocations: 7.657 MB / 0.8282 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/0.927, allocations: 4 kB / 0.8282 GB, free: 135.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00455/0.9315, allocations: 3.683 MB / 0.8318 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003599/0.9351, allocations: 1.05 MB / 0.8328 GB, free: 130.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07924/1.014, allocations: 60.81 MB / 0.8922 GB, free: 67.42 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004831/1.019, allocations: 6.081 MB / 0.8982 GB, free: 61.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00361/1.023, allocations: 2.119 MB / 0.9002 GB, free: 59.18 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003348/1.026, allocations: 3.583 MB / 0.9037 GB, free: 55.59 MB / 0.5261 GB Notification: Performance of SimCode: time 1.814e-06/1.026, allocations: 0 / 0.9037 GB, free: 55.59 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3095/1.336, allocations: 142.8 MB / 1.043 GB, free: 133 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/13.71, allocations: 3.094 kB / 1.043 GB, free: 133 MB / 0.5261 GB " [Timeout remaining time 646] (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: 26.645752515643835] Failed to read output from testmodel.py, exit status != 0: 13.877303841523826 13.884366969 13.573420147 Calling exit ...