Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 110.5 kB / 21.22 MB, free: 0.5156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001501/0.001501, allocations: 209.3 kB / 24.54 MB, free: 3.906 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.441/1.441, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 64.77 kB / 378.6 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3111, allocations: 53.37 MB / 432 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.03005/0.3411, allocations: 25.06 MB / 457 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01819/0.3593, allocations: 8.118 MB / 465.2 MB, free: 5.535 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005623/0.3649, allocations: 214.9 kB / 465.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02141/0.3863, allocations: 8.488 MB / 473.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01122/0.3976, allocations: 3.16 MB / 477 MB, free: 9.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006477/0.404, allocations: 1.883 MB / 478.9 MB, free: 7.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01812/0.4222, allocations: 11.34 MB / 490.2 MB, free: 12.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03042/0.4526, allocations: 14.67 MB / 0.4931 GB, free: 13.58 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01007/0.4626, allocations: 6.071 MB / 0.499 GB, free: 7.496 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01159/0.4742, allocations: 6.565 MB / 0.5054 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00516/0.4794, allocations: 1.715 MB / 0.5071 GB, free: 15.19 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007249/0.4866, allocations: 2.164 MB / 0.5092 GB, free: 13.03 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005641/0.4923, allocations: 3.402 MB / 0.5125 GB, free: 9.621 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01187/0.5042, allocations: 6.37 MB / 0.5187 GB, free: 3.227 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5254/1.03, allocations: 23.19 MB / 0.5414 GB, free: 40.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/1.03, allocations: 0 / 0.5414 GB, free: 40.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/1.03, allocations: 1.125 kB / 0.5414 GB, free: 40.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007032/1.03, allocations: 1.688 kB / 0.5414 GB, free: 40.98 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.04394/1.074, allocations: 13.57 MB / 0.5546 GB, free: 37.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/1.074, allocations: 9.75 kB / 0.5547 GB, free: 37.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0072/1.081, allocations: 1.607 MB / 0.5562 GB, free: 37.2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03535/1.117, allocations: 6.258 MB / 0.5623 GB, free: 36.36 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01504/1.132, allocations: 7.372 MB / 0.5695 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006094/1.132, allocations: 0.7214 MB / 0.5702 GB, free: 33.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004412/1.137, allocations: 0.9533 MB / 0.5712 GB, free: 33.15 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04366/1.181, allocations: 16.2 MB / 0.587 GB, free: 19.69 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004259/1.181, allocations: 15.91 kB / 0.587 GB, free: 19.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004562/1.186, allocations: 401.9 kB / 0.5874 GB, free: 19.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004947/1.186, allocations: 0.5671 MB / 0.5879 GB, free: 18.72 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02975/1.216, allocations: 15.16 MB / 0.6027 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1045/1.32, allocations: 51.48 MB / 0.653 GB, free: 0 / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01795/1.338, allocations: 8.634 MB / 0.6614 GB, free: 8.172 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007172/1.345, allocations: 3.322 MB / 0.6647 GB, free: 4.848 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006785/1.346, allocations: 140.5 kB / 0.6648 GB, free: 4.738 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001157/1.346, allocations: 82 kB / 0.6649 GB, free: 4.648 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=447): time 1.016e-05/1.346, allocations: 0 / 0.6649 GB, free: 4.648 MB / 0.4982 GB Notification: Performance of matching and sorting (n=452): time 0.06108/1.407, allocations: 20.56 MB / 0.685 GB, free: 136 kB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.873e-05/1.407, allocations: 103 kB / 0.6851 GB, free: 20 kB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009159/1.417, allocations: 4.505 MB / 0.6895 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009045/1.417, allocations: 101.7 kB / 0.6896 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003922/1.421, allocations: 4.352 MB / 0.6938 GB, free: 7.027 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002253/1.424, allocations: 1.614 MB / 0.6954 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003923/1.428, allocations: 1.208 MB / 0.6966 GB, free: 4.215 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001387/1.428, allocations: 309.1 kB / 0.6969 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005949/1.434, allocations: 3.068 MB / 0.6999 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008209/1.442, allocations: 5.219 MB / 0.705 GB, free: 10.68 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01522/1.457, allocations: 8.888 MB / 0.7136 GB, free: 1.109 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.183e-05/1.457, allocations: 20 kB / 0.7137 GB, free: 1.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.02468/1.482, allocations: 9.877 MB / 0.7233 GB, free: 7.648 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001789/1.482, allocations: 32 kB / 0.7233 GB, free: 7.617 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002404/1.482, allocations: 72 kB / 0.7234 GB, free: 7.547 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004627/1.487, allocations: 1.406 MB / 0.7248 GB, free: 6.141 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005975/1.493, allocations: 1.39 MB / 0.7261 GB, free: 4.844 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02172/1.515, allocations: 12.47 MB / 0.7383 GB, free: 8.215 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005514/1.52, allocations: 362.1 kB / 0.7387 GB, free: 7.863 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001557/1.522, allocations: 296 kB / 0.7389 GB, free: 7.574 MB / 0.5763 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.009691/1.531, allocations: 3.885 MB / 0.7427 GB, free: 3.77 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001912/1.533, allocations: 487.9 kB / 0.7432 GB, free: 3.293 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01916/1.552, allocations: 8.473 MB / 0.7515 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01283/1.565, allocations: 6.228 MB / 0.7576 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-05/1.565, allocations: 12 kB / 0.7576 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-05/1.565, allocations: 19.92 kB / 0.7576 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2861/1.851, allocations: 17.47 MB / 0.7747 GB, free: 221.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.118e-05/1.851, allocations: 7.344 kB / 0.7747 GB, free: 221.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003345/1.855, allocations: 0.8151 MB / 0.7755 GB, free: 221.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003365/1.858, allocations: 1.285 MB / 0.7767 GB, free: 221.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007064/1.859, allocations: 109.3 kB / 0.7768 GB, free: 221.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01385/1.873, allocations: 11.37 MB / 0.7879 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/1.873, allocations: 13.59 kB / 0.7879 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0175/1.89, allocations: 11.21 MB / 0.7989 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003407/1.894, allocations: 1.06 MB / 0.7999 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001462/1.895, allocations: 89.05 kB / 0.8 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003384/1.898, allocations: 237.2 kB / 0.8002 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009794/1.899, allocations: 353.7 kB / 0.8006 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005337/1.9, allocations: 142 kB / 0.8007 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005681/1.906, allocations: 3.116 MB / 0.8037 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2e-07/1.906, allocations: 0 / 0.8037 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008599/1.914, allocations: 1.73 MB / 0.8054 GB, free: 205.5 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.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.02402/1.938, allocations: 12.21 MB / 0.8174 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0146/1.953, allocations: 7.671 MB / 0.8248 GB, free: 187.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/1.953, allocations: 6.406 kB / 0.8249 GB, free: 187.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007314/1.96, allocations: 3.7 MB / 0.8285 GB, free: 183.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007322/1.968, allocations: 1.055 MB / 0.8295 GB, free: 182.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1123/2.08, allocations: 60.92 MB / 0.889 GB, free: 119.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0109/2.091, allocations: 6.517 MB / 0.8954 GB, free: 112.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005638/2.096, allocations: 2.119 MB / 0.8974 GB, free: 110.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005534/2.102, allocations: 3.588 MB / 0.9009 GB, free: 107.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.273e-06/2.102, allocations: 0 / 0.9009 GB, free: 107.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4656/2.568, allocations: 146.4 MB / 1.044 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.79/24.36, allocations: 3.062 kB / 1.044 GB, free: 212.5 MB / 0.5919 GB " [Timeout remaining time 635] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.40507717896253] Failed to read output from testmodel.py, exit status != 0: ['time', 'PIQS.x', 'imcQS.rotorCage.port_p.reference.gamma', 'loadInertiaQS.w', 'powerSensorQS.flange_a.phi'] 24.595580560155213 24.617386557 23.583390066 Calling exit ...