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.001285/0.001285, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001421/0.001421, allocations: 213.6 kB / 24.54 MB, free: 4.02 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.389/1.389, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.001923/0.001923, allocations: 68.77 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2578, allocations: 53.37 MB / 432 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01225/0.2701, allocations: 9.811 MB / 441.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007175/0.2773, allocations: 3.798 MB / 445.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001218/0.2785, allocations: 59.62 kB / 445.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001743/0.2802, allocations: 0.7066 MB / 446.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002331/0.2825, allocations: 0.9245 MB / 447.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.2836, allocations: 479 kB / 447.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002896/0.2865, allocations: 2.675 MB / 450.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001461/0.288, allocations: 1.109 MB / 451.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001484/0.2895, allocations: 1.238 MB / 452.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002009/0.2915, allocations: 1.553 MB / 454.3 MB, free: 400 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003944/0.2919, allocations: 308 kB / 454.6 MB, free: 92 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.2929, allocations: 0.6205 MB / 455.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001063/0.294, allocations: 1.036 MB / 456.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001592/0.2956, allocations: 1.493 MB / 457.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004834/0.3004, allocations: 4.324 MB / 462.1 MB, free: 8.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3004, allocations: 3.938 kB / 462.1 MB, free: 8.586 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3004, allocations: 0 / 462.1 MB, free: 8.586 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.628e-05/0.3005, allocations: 0 / 462.1 MB, free: 8.586 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.006452/0.3069, allocations: 3.193 MB / 465.3 MB, free: 5.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.307, allocations: 8.031 kB / 465.3 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005655/0.3076, allocations: 355.4 kB / 465.6 MB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/0.3087, allocations: 378.9 kB / 466 MB, free: 4.598 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00324/0.3119, allocations: 1.669 MB / 467.7 MB, free: 2.891 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.3121, allocations: 156.1 kB / 467.8 MB, free: 2.734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003393/0.3124, allocations: 208 kB / 468 MB, free: 2.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005295/0.3177, allocations: 2.731 MB / 470.8 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.054e-05/0.3178, allocations: 7.891 kB / 470.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001968/0.318, allocations: 84 kB / 470.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001427/0.3181, allocations: 96.05 kB / 470.9 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004459/0.3226, allocations: 2.3 MB / 473.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01487/0.3374, allocations: 8.077 MB / 481.3 MB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002847/0.3403, allocations: 1.322 MB / 482.6 MB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001939/0.3422, allocations: 1.023 MB / 483.7 MB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002255/0.3425, allocations: 52.94 kB / 483.7 MB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.03e-05/0.3425, allocations: 47.56 kB / 483.8 MB, free: 2.465 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.935e-06/0.3425, allocations: 0 / 483.8 MB, free: 2.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01297/0.3555, allocations: 6.12 MB / 489.9 MB, free: 12.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.3555, allocations: 64.72 kB / 489.9 MB, free: 12.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003061/0.3586, allocations: 2.177 MB / 492.1 MB, free: 10 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.3587, allocations: 49.7 kB / 492.2 MB, free: 9.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009325/0.3597, allocations: 1.161 MB / 493.3 MB, free: 8.773 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000399/0.3601, allocations: 483.8 kB / 493.8 MB, free: 8.297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004127/0.3605, allocations: 239.6 kB / 494 MB, free: 8.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.3606, allocations: 357.9 kB / 494.4 MB, free: 7.703 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.362, allocations: 0.7574 MB / 495.1 MB, free: 6.945 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.3635, allocations: 1.017 MB / 496.2 MB, free: 5.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.3664, allocations: 1.861 MB / 498 MB, free: 3.887 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3664, allocations: 0 / 498 MB, free: 3.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00518/0.3715, allocations: 2.758 MB / 0.489 GB, free: 1.109 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.3716, allocations: 8 kB / 0.489 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.3716, allocations: 4 kB / 0.489 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001987/0.3736, allocations: 0.7853 MB / 0.4898 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.3747, allocations: 267.6 kB / 0.4901 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01272/0.3874, allocations: 9.41 MB / 0.4993 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.3889, allocations: 91.89 kB / 0.4993 GB, free: 6.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.3891, allocations: 55.98 kB / 0.4994 GB, free: 6.258 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.001375/0.3904, allocations: 0.7395 MB / 0.5001 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004637/0.3909, allocations: 218.6 kB / 0.5003 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004708/0.3956, allocations: 2.477 MB / 0.5028 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.828e-05/0.3956, allocations: 16 kB / 0.5028 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.3956, allocations: 4 kB / 0.5028 GB, free: 2.777 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.3957, allocations: 15.95 kB / 0.5028 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008953/0.4046, allocations: 4.914 MB / 0.5076 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4046, allocations: 4.156 kB / 0.5076 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.4056, allocations: 215.6 kB / 0.5078 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/0.4074, allocations: 0.6609 MB / 0.5084 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/0.4075, allocations: 35.98 kB / 0.5085 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009708/0.4172, allocations: 8.401 MB / 0.5167 GB, free: 4.105 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4172, allocations: 4.062 kB / 0.5167 GB, free: 4.102 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006288/0.4235, allocations: 3.529 MB / 0.5201 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.4246, allocations: 370.5 kB / 0.5205 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002517/0.4249, allocations: 35.92 kB / 0.5205 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000929/0.4258, allocations: 83.91 kB / 0.5206 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002959/0.4261, allocations: 108.9 kB / 0.5207 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.4262, allocations: 47.89 kB / 0.5207 GB, free: 15.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002171/0.4284, allocations: 1.532 MB / 0.5222 GB, free: 14.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4284, allocations: 4 kB / 0.5222 GB, free: 14.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001632/0.43, allocations: 0.5234 MB / 0.5228 GB, free: 13.8 MB / 446.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.008253/0.4382, allocations: 4.46 MB / 0.5271 GB, free: 9.422 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004508/0.4428, allocations: 2.303 MB / 0.5294 GB, free: 7.098 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/0.4428, allocations: 4.062 kB / 0.5294 GB, free: 7.094 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002652/0.4454, allocations: 1.467 MB / 0.5308 GB, free: 5.582 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.4476, allocations: 457.4 kB / 0.5312 GB, free: 5.141 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2332/0.6807, allocations: 21.16 MB / 0.5519 GB, free: 96.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/0.6821, allocations: 1.973 MB / 0.5538 GB, free: 94.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001062/0.6831, allocations: 392.3 kB / 0.5542 GB, free: 94.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009221/0.6841, allocations: 0.9864 MB / 0.5552 GB, free: 93.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6841, allocations: 0 / 0.5552 GB, free: 93.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09081/0.7749, allocations: 52.8 MB / 0.6067 GB, free: 40.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.55/24.32, allocations: 10.06 kB / 0.6067 GB, free: 40.99 MB / 446.1 MB " [Timeout remaining time 635] (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: 26.99826932279393] 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'] 24.51169288204983 24.529247013 24.225098873 Calling exit ...