Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.001289/0.001289, allocations: 116.5 kB / 18.5 MB, free: 4.434 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.001365/0.001365, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.45/1.45, allocations: 230.5 MB / 254.7 MB, free: 15 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.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_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_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_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.001958/0.001958, allocations: 71.88 kB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1138, allocations: 53.31 MB / 426.9 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2619/0.3757, allocations: 12.2 MB / 439.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007794/0.3835, allocations: 3.323 MB / 442.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002799/0.3863, allocations: 35.09 kB / 442.5 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002867/0.3891, allocations: 0.6946 MB / 443.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004086/0.3932, allocations: 0.7828 MB / 443.9 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001776/0.395, allocations: 399.3 kB / 444.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005056/0.4001, allocations: 2.414 MB / 446.7 MB, free: 404 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001724/0.4018, allocations: 0.6494 MB / 447.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00288/0.4047, allocations: 0.9135 MB / 448.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002714/0.4074, allocations: 0.981 MB / 449.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008744/0.4083, allocations: 230.5 kB / 449.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001574/0.4098, allocations: 265.3 kB / 449.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007236/0.4105, allocations: 464.3 kB / 450.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00329/0.4138, allocations: 1.077 MB / 451.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006716/0.4206, allocations: 2.84 MB / 454.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.4206, allocations: 0 / 454.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.4206, allocations: 0.6094 kB / 454.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001456/0.4207, allocations: 1.438 kB / 454.1 MB, free: 12.84 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.007936/0.4286, allocations: 2.21 MB / 456.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.4287, allocations: 9.906 kB / 456.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004647/0.4292, allocations: 227.9 kB / 456.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001326/0.4305, allocations: 289.7 kB / 456.9 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00302/0.4335, allocations: 1.124 MB / 458 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.4336, allocations: 127 kB / 458.1 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003488/0.434, allocations: 158 kB / 458.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003556/0.4375, allocations: 1.516 MB / 459.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.169e-05/0.4376, allocations: 8.016 kB / 459.8 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/0.4378, allocations: 66.44 kB / 459.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.684e-05/0.4378, allocations: 37.59 kB / 459.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002375/0.4402, allocations: 1.05 MB / 460.9 MB, free: 8.828 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01024/0.4504, allocations: 6.253 MB / 467.2 MB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.452, allocations: 0.5708 MB / 467.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009128/0.4529, allocations: 430.8 kB / 468.2 MB, free: 3.105 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.392e-05/0.4529, allocations: 8.312 kB / 468.2 MB, free: 3.105 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.453, allocations: 42.53 kB / 468.2 MB, free: 3.059 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.815e-06/0.453, allocations: 0 / 468.2 MB, free: 3.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.005877/0.4589, allocations: 2.393 MB / 470.6 MB, free: 1.504 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.166e-05/0.459, allocations: 110.7 kB / 470.7 MB, free: 1.379 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002318/0.4613, allocations: 1.31 MB / 472 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.834e-05/0.4614, allocations: 37.05 kB / 472.1 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008292/0.4622, allocations: 0.8757 MB / 473 MB, free: 15.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002957/0.4625, allocations: 266.4 kB / 473.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00037/0.4629, allocations: 207.8 kB / 473.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.4631, allocations: 352.4 kB / 473.8 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006556/0.4637, allocations: 284 kB / 474 MB, free: 14.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.4648, allocations: 0.736 MB / 474.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001845/0.4667, allocations: 1.086 MB / 475.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-05/0.4667, allocations: 6.094 kB / 475.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002746/0.4694, allocations: 1.267 MB / 477.1 MB, free: 12.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.4695, allocations: 10.47 kB / 477.1 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.347e-05/0.4695, allocations: 15.41 kB / 477.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005725/0.4701, allocations: 138.8 kB / 477.3 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008802/0.471, allocations: 253.8 kB / 477.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004618/0.4756, allocations: 4.639 MB / 482.2 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.477, allocations: 61.05 kB / 482.2 MB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.4772, allocations: 62.73 kB / 482.3 MB, free: 7.773 MB / 382.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.0008116/0.478, allocations: 362.8 kB / 482.7 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003628/0.4784, allocations: 142.5 kB / 482.8 MB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.4803, allocations: 0.8259 MB / 483.6 MB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.4803, allocations: 15.88 kB / 483.6 MB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4803, allocations: 0 / 483.6 MB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.4803, allocations: 3.984 kB / 483.6 MB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004739/0.485, allocations: 2.331 MB / 486 MB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.4851, allocations: 4 kB / 486 MB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005902/0.4856, allocations: 131.8 kB / 486.1 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004696/0.4861, allocations: 134.8 kB / 486.2 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.165e-05/0.4862, allocations: 16 kB / 486.3 MB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004864/0.491, allocations: 4.784 MB / 491 MB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/0.491, allocations: 11.88 kB / 491.1 MB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002808/0.4938, allocations: 1.301 MB / 492.4 MB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008994/0.4947, allocations: 292.1 kB / 492.6 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002669/0.495, allocations: 23.98 kB / 492.7 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000696/0.4957, allocations: 40.28 kB / 492.7 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.4959, allocations: 60.36 kB / 492.8 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.4959, allocations: 24 kB / 492.8 MB, free: 13.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00149/0.4974, allocations: 0.882 MB / 493.7 MB, free: 12.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4974, allocations: 0 / 493.7 MB, free: 12.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00182/0.4992, allocations: 331.9 kB / 494 MB, free: 11.84 MB / 398.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.003241/0.5025, allocations: 1.889 MB / 495.9 MB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002363/0.5048, allocations: 1.082 MB / 497 MB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.5048, allocations: 7.938 kB / 497 MB, free: 8.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.5061, allocations: 0.6835 MB / 497.7 MB, free: 8.012 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.5087, allocations: 373 kB / 498 MB, free: 7.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02378/0.5324, allocations: 11.72 MB / 0.4978 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.5336, allocations: 1.214 MB / 0.499 GB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008373/0.5344, allocations: 171.6 kB / 0.4991 GB, free: 9.836 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008347/0.5352, allocations: 0.6164 MB / 0.4997 GB, free: 9.219 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5352, allocations: 4 kB / 0.4997 GB, free: 9.215 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08812/0.6234, allocations: 31.45 MB / 0.5305 GB, free: 10.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.24, allocations: 11.88 kB / 0.5305 GB, free: 10.14 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.758765212725848] 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.355959065724164 15.375658171 14.950933677 Calling exit ...