Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.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.001379/0.001379, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.001466/0.001466, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.401/1.401, allocations: 230.5 MB / 254.7 MB, free: 15.02 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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_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.001878/0.001878, allocations: 75.81 kB / 373.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1046, allocations: 53.32 MB / 426.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.1966/0.3013, allocations: 9.754 MB / 436.7 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005676/0.307, allocations: 3.779 MB / 440.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/0.3086, allocations: 48.88 kB / 440.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001875/0.3105, allocations: 0.7055 MB / 441.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002636/0.3131, allocations: 0.9167 MB / 442.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.3143, allocations: 468.2 kB / 442.6 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0033/0.3176, allocations: 2.658 MB / 445.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001809/0.3194, allocations: 1.386 MB / 446.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001951/0.3213, allocations: 1.204 MB / 447.8 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002314/0.3236, allocations: 1.553 MB / 449.4 MB, free: 40 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005076/0.3241, allocations: 304.8 kB / 449.7 MB, free: 40 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.3255, allocations: 0.5719 MB / 450.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001179/0.3267, allocations: 1.041 MB / 451.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001936/0.3286, allocations: 1.488 MB / 452.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005558/0.3342, allocations: 4.314 MB / 457.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3342, allocations: 1.25 kB / 457.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3342, allocations: 0 / 457.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.997e-05/0.3343, allocations: 0 / 457.1 MB, free: 12.34 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.006312/0.3406, allocations: 3.278 MB / 460.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3406, allocations: 13.09 kB / 460.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005366/0.3412, allocations: 354.2 kB / 460.7 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.3423, allocations: 381.3 kB / 461.1 MB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00317/0.3455, allocations: 1.741 MB / 462.9 MB, free: 8.332 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.3456, allocations: 159.4 kB / 463 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003138/0.346, allocations: 207.8 kB / 463.2 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004578/0.3505, allocations: 2.732 MB / 465.9 MB, free: 6.547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.577e-05/0.3506, allocations: 1.75 kB / 465.9 MB, free: 6.547 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002017/0.3508, allocations: 85.42 kB / 466 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.3509, allocations: 99.25 kB / 466.1 MB, free: 6.461 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004095/0.355, allocations: 2.299 MB / 468.4 MB, free: 5.277 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01435/0.3694, allocations: 8.233 MB / 476.7 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002961/0.3723, allocations: 1.545 MB / 478.2 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.3743, allocations: 1.024 MB / 479.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002647/0.3746, allocations: 126.1 kB / 479.3 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.3746, allocations: 43.56 kB / 479.4 MB, free: 12.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.825e-06/0.3746, allocations: 0 / 479.4 MB, free: 12.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01353/0.3881, allocations: 6.485 MB / 485.9 MB, free: 5.473 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.3882, allocations: 68.72 kB / 485.9 MB, free: 5.395 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003175/0.3914, allocations: 2.181 MB / 488.1 MB, free: 3.168 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.3915, allocations: 45.7 kB / 488.2 MB, free: 3.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009579/0.3924, allocations: 1.153 MB / 489.3 MB, free: 1.953 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004143/0.3929, allocations: 475.9 kB / 489.8 MB, free: 1.484 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004156/0.3933, allocations: 243.5 kB / 490 MB, free: 1.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3935, allocations: 361.9 kB / 490.4 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.3948, allocations: 0.7613 MB / 491.1 MB, free: 124 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.3963, allocations: 1.009 MB / 492.1 MB, free: 15.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/0.3993, allocations: 1.874 MB / 494 MB, free: 13.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.3993, allocations: 0 / 494 MB, free: 13.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005481/0.4048, allocations: 2.754 MB / 496.8 MB, free: 10.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.798e-05/0.4048, allocations: 8 kB / 496.8 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/0.4048, allocations: 8.547 kB / 496.8 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/0.4069, allocations: 0.7774 MB / 497.6 MB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.4081, allocations: 271.6 kB / 497.8 MB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/0.4204, allocations: 9.599 MB / 0.4955 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.4219, allocations: 95.95 kB / 0.4956 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.422, allocations: 51.98 kB / 0.4957 GB, free: 15.2 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * 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 {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001472/0.4235, allocations: 0.7401 MB / 0.4964 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000445/0.4239, allocations: 214.6 kB / 0.4966 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004669/0.4286, allocations: 2.485 MB / 0.499 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.703e-05/0.4286, allocations: 15.98 kB / 0.4991 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/0.4286, allocations: 11.94 kB / 0.4991 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.4286, allocations: 3.984 kB / 0.4991 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009265/0.4379, allocations: 4.952 MB / 0.5039 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.4379, allocations: 0 / 0.5039 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009931/0.4389, allocations: 215.7 kB / 0.5041 GB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/0.4406, allocations: 0.6481 MB / 0.5047 GB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.4408, allocations: 39.97 kB / 0.5048 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009887/0.4507, allocations: 8.728 MB / 0.5133 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4507, allocations: 0 / 0.5133 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006305/0.457, allocations: 3.537 MB / 0.5168 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.4581, allocations: 447.6 kB / 0.5172 GB, free: 8.574 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002451/0.4584, allocations: 35.92 kB / 0.5172 GB, free: 8.539 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009199/0.4593, allocations: 79.91 kB / 0.5173 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/0.4596, allocations: 104.8 kB / 0.5174 GB, free: 8.359 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.4597, allocations: 39.98 kB / 0.5174 GB, free: 8.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00225/0.4619, allocations: 1.54 MB / 0.5189 GB, free: 6.758 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4619, allocations: 0 / 0.5189 GB, free: 6.758 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001801/0.4637, allocations: 0.5235 MB / 0.5194 GB, free: 6.234 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007628/0.4714, allocations: 4.454 MB / 0.5238 GB, free: 1.883 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004451/0.4758, allocations: 2.306 MB / 0.526 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.4758, allocations: 0 / 0.526 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/0.4784, allocations: 1.547 MB / 0.5276 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002249/0.4807, allocations: 463 kB / 0.528 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0346/0.5153, allocations: 21.15 MB / 0.5487 GB, free: 7.938 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002157/0.5174, allocations: 1.971 MB / 0.5506 GB, free: 5.934 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001492/0.5189, allocations: 395.7 kB / 0.551 GB, free: 5.543 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001279/0.5202, allocations: 0.9796 MB / 0.5519 GB, free: 4.562 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5202, allocations: 0 / 0.5519 GB, free: 4.562 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1063/0.6265, allocations: 51.76 MB / 0.6025 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.67/23.29, allocations: 15.22 kB / 0.6025 GB, free: 1.176 MB / 0.4981 GB " [Timeout remaining time 637] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 25.92682770686224] Failed to read output from testmodel.py, exit status != 0: ['time', 'PI.x', 'aimc.is[1]', 'aimc.is[2]', 'aimc.idq_rr[1]', 'aimc.idq_rr[2]', 'aimc.idq_sr[1]', 'aimc.idq_sr[2]', 'loadInertia.w', 'powerSensor.flange_a.phi'] 23.45918759284541 23.481587611 23.143149466 Calling exit ...