Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.001669/0.001669, allocations: 119.9 kB / 17.73 MB, free: 5.441 MB / 14.72 MB " [Timeout remaining time 180] 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.001967/0.001967, allocations: 185.3 kB / 20.67 MB, free: 2.512 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.443/1.443, allocations: 222.9 MB / 246.4 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 47.92 kB / 357.5 MB, free: 8.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1241, allocations: 49.44 MB / 406.9 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01613/0.1403, allocations: 12.15 MB / 419.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008297/0.1486, allocations: 3.284 MB / 422.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002244/0.1509, allocations: 35.94 kB / 422.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002825/0.1538, allocations: 0.6634 MB / 423.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003512/0.1573, allocations: 0.7247 MB / 423.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.1589, allocations: 403.5 kB / 424.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004257/0.1632, allocations: 2.417 MB / 426.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001726/0.1649, allocations: 0.993 MB / 427.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.1667, allocations: 0.8949 MB / 428.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.168, allocations: 0.9762 MB / 429.5 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000293/0.1683, allocations: 232 kB / 429.7 MB, free: 416 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005086/0.1688, allocations: 264 kB / 429.9 MB, free: 152 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.27/0.4388, allocations: 460.7 kB / 430.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00154/0.4404, allocations: 1.074 MB / 431.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004754/0.4452, allocations: 2.84 MB / 434.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.417e-06/0.4452, allocations: 2.688 kB / 434.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.037e-06/0.4452, allocations: 0.7031 kB / 434.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001376/0.4454, allocations: 0.5 kB / 434.3 MB, free: 8.434 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.00536/0.4508, allocations: 2.206 MB / 436.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.4508, allocations: 9.688 kB / 436.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002851/0.4511, allocations: 224 kB / 436.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001037/0.4522, allocations: 291.3 kB / 437 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002514/0.4547, allocations: 1.138 MB / 438.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.4548, allocations: 114.5 kB / 438.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002689/0.4551, allocations: 161.2 kB / 438.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002861/0.458, allocations: 1.504 MB / 439.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.757e-05/0.4581, allocations: 12.84 kB / 440 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001431/0.4582, allocations: 66.5 kB / 440 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.727e-05/0.4583, allocations: 38.34 kB / 440.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002335/0.4606, allocations: 1.049 MB / 441.1 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01014/0.4708, allocations: 6.25 MB / 447.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.4724, allocations: 0.6152 MB / 448 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009322/0.4733, allocations: 459.5 kB / 448.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-05/0.4734, allocations: 7.844 kB / 448.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.4734, allocations: 47.66 kB / 448.5 MB, free: 3.805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.985e-06/0.4735, allocations: 0 / 448.5 MB, free: 3.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005501/0.479, allocations: 2.389 MB / 450.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.479, allocations: 113.9 kB / 451 MB, free: 2.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002017/0.4811, allocations: 1.303 MB / 452.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.4811, allocations: 43.7 kB / 452.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000508/0.4816, allocations: 0.8643 MB / 453.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.4818, allocations: 280.2 kB / 453.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002781/0.4821, allocations: 209.8 kB / 453.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.965e-05/0.4822, allocations: 348 kB / 454 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005548/0.4828, allocations: 284.8 kB / 454.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007719/0.4836, allocations: 0.74 MB / 455 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.4852, allocations: 1.101 MB / 456.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.4852, allocations: 5.562 kB / 456.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002787/0.488, allocations: 1.275 MB / 457.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.4881, allocations: 11.31 kB / 457.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/0.4881, allocations: 19.5 kB / 457.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005566/0.4887, allocations: 135.4 kB / 457.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008056/0.4895, allocations: 255.8 kB / 457.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/0.494, allocations: 4.644 MB / 462.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.4952, allocations: 56.55 kB / 462.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.18e-05/0.4953, allocations: 56.75 kB / 462.6 MB, free: 10.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007143/0.4961, allocations: 362.5 kB / 462.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002756/0.4963, allocations: 149.3 kB / 463.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001892/0.4982, allocations: 0.8273 MB / 463.9 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.4983, allocations: 6.812 kB / 463.9 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.4983, allocations: 5.094 kB / 463.9 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4983, allocations: 3.984 kB / 463.9 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/0.5026, allocations: 2.333 MB / 466.2 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.5026, allocations: 7.516 kB / 466.3 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005599/0.5032, allocations: 125.4 kB / 466.4 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004654/0.5037, allocations: 132.3 kB / 466.5 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.292e-05/0.5037, allocations: 26.33 kB / 466.5 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004658/0.5084, allocations: 4.787 MB / 471.3 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.5084, allocations: 6.156 kB / 471.3 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002818/0.5112, allocations: 1.299 MB / 472.6 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006653/0.5119, allocations: 292.1 kB / 472.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.5121, allocations: 25.52 kB / 472.9 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006167/0.5127, allocations: 44.53 kB / 473 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.5129, allocations: 59.81 kB / 473 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/0.5129, allocations: 25.86 kB / 473.1 MB, free: 2.176 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001331/0.5143, allocations: 0.8776 MB / 473.9 MB, free: 1.691 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5143, allocations: 0 / 473.9 MB, free: 1.691 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001422/0.5157, allocations: 327.8 kB / 474.3 MB, free: 1.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002825/0.5185, allocations: 1.893 MB / 476.2 MB, free: 280 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002278/0.5208, allocations: 1.131 MB / 477.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.5209, allocations: 0 / 477.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.522, allocations: 0.7137 MB / 478 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/0.524, allocations: 367.9 kB / 478.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02089/0.5449, allocations: 11.71 MB / 490.1 MB, free: 2.852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.546, allocations: 1.21 MB / 491.3 MB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008096/0.5468, allocations: 177.2 kB / 491.5 MB, free: 1.438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008269/0.5476, allocations: 0.6203 MB / 492.1 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5476, allocations: 0 / 492.1 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08457/0.6322, allocations: 31.18 MB / 0.511 GB, free: 2.035 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.78/15.41, allocations: 8.062 kB / 0.511 GB, free: 2.027 MB / 414.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.026377776172012] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcpm1.la.i', 'dcpm2.la.i', 'loadInertia1.phi', 'loadInertia1.w', 'loadInertia2.phi', 'loadInertia2.w'] 15.52729589608498 15.541455077 15.093554316 Calling exit ...