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_QuasiStatic.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.001345/0.001345, allocations: 112.3 kB / 20.22 MB, free: 1.793 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.001663/0.001663, allocations: 215.5 kB / 23.48 MB, free: 5.227 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.393/1.393, allocations: 230.4 MB / 257 MB, free: 8.266 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_QuasiStatic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.00186/0.00186, allocations: 59.91 kB / 377.1 MB, free: 3.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2687, allocations: 53.32 MB / 430.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01446/0.2832, allocations: 11.84 MB / 442.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006692/0.2899, allocations: 3.273 MB / 445.5 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002304/0.2922, allocations: 31.94 kB / 445.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002425/0.2946, allocations: 0.6757 MB / 446.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00265/0.2973, allocations: 0.7251 MB / 446.9 MB, free: 6.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.2983, allocations: 403.4 kB / 447.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003338/0.3016, allocations: 2.238 MB / 449.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.3027, allocations: 0.6493 MB / 450.2 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001326/0.3041, allocations: 0.856 MB / 451.1 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.3052, allocations: 0.9178 MB / 452 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002747/0.3055, allocations: 216 kB / 452.2 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004755/0.3059, allocations: 252 kB / 452.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003862/0.3063, allocations: 438.4 kB / 452.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.3074, allocations: 1.007 MB / 453.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003269/0.3107, allocations: 2.693 MB / 456.6 MB, free: 12.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3107, allocations: 0 / 456.6 MB, free: 12.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.3107, allocations: 0 / 456.6 MB, free: 12.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.229e-05/0.3107, allocations: 0 / 456.6 MB, free: 12.91 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003885/0.3146, allocations: 2.116 MB / 458.7 MB, free: 10.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.3147, allocations: 8.031 kB / 458.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002888/0.315, allocations: 224.1 kB / 458.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000832/0.3158, allocations: 263.6 kB / 459.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002064/0.3179, allocations: 1.053 MB / 460.2 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.318, allocations: 119.2 kB / 460.4 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002372/0.3182, allocations: 159.9 kB / 460.5 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/0.3208, allocations: 1.495 MB / 462 MB, free: 7.285 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.265e-05/0.3209, allocations: 15.88 kB / 462 MB, free: 7.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.321, allocations: 60 kB / 462.1 MB, free: 7.211 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.795e-05/0.3211, allocations: 40 kB / 462.1 MB, free: 7.172 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.323, allocations: 0.9707 MB / 463.1 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009501/0.3325, allocations: 6.549 MB / 469.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009811/0.3335, allocations: 384.1 kB / 470 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004522/0.3339, allocations: 202.1 kB / 470.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.334, allocations: 4.438 kB / 470.2 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005947/0.3346, allocations: 276.8 kB / 470.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.295e-06/0.3346, allocations: 0 / 470.5 MB, free: 14.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003642/0.3382, allocations: 1.776 MB / 472.3 MB, free: 12.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000152/0.3384, allocations: 170.8 kB / 472.4 MB, free: 12.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.3402, allocations: 1.273 MB / 473.7 MB, free: 11.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.359e-05/0.3403, allocations: 33.7 kB / 473.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008267/0.3411, allocations: 0.905 MB / 474.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/0.3413, allocations: 214.3 kB / 474.9 MB, free: 9.895 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003087/0.3416, allocations: 218.7 kB / 475.1 MB, free: 9.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.3418, allocations: 353.9 kB / 475.4 MB, free: 9.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004839/0.3423, allocations: 234.4 kB / 475.6 MB, free: 9.094 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009679/0.3433, allocations: 0.8034 MB / 476.4 MB, free: 8.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.3448, allocations: 1.114 MB / 477.6 MB, free: 6.633 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.3448, allocations: 4 kB / 477.6 MB, free: 6.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002082/0.3469, allocations: 1.173 MB / 478.7 MB, free: 5.438 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.3469, allocations: 45.64 kB / 478.8 MB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/0.347, allocations: 23.94 kB / 478.8 MB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002418/0.3472, allocations: 74.31 kB / 478.9 MB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007693/0.348, allocations: 259.6 kB / 479.1 MB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002359/0.3503, allocations: 2.785 MB / 481.9 MB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.3513, allocations: 68.03 kB / 482 MB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.654e-05/0.3514, allocations: 60 kB / 482 MB, free: 1.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006056/0.352, allocations: 353.3 kB / 482.4 MB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.3522, allocations: 147 kB / 482.5 MB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/0.3533, allocations: 0.5528 MB / 483.1 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3533, allocations: 4 kB / 483.1 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3533, allocations: 0 / 483.1 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3533, allocations: 3.984 kB / 483.1 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.3561, allocations: 1.87 MB / 485 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.3561, allocations: 4 kB / 485 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004437/0.3566, allocations: 99.89 kB / 485.1 MB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001482/0.3567, allocations: 49.62 kB / 485.1 MB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.016e-05/0.3567, allocations: 12 kB / 485.1 MB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002209/0.359, allocations: 2.753 MB / 487.9 MB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.359, allocations: 8.062 kB / 487.9 MB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.3605, allocations: 0.9402 MB / 488.8 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004389/0.3609, allocations: 256.2 kB / 489.1 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.361, allocations: 16 kB / 489.1 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005302/0.3616, allocations: 27.97 kB / 489.1 MB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.3617, allocations: 51.88 kB / 489.2 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.3617, allocations: 23.94 kB / 489.2 MB, free: 10.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001254/0.363, allocations: 0.85 MB / 490 MB, free: 9.316 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.363, allocations: 0 / 490 MB, free: 9.316 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00111/0.3641, allocations: 300 kB / 490.3 MB, free: 9.023 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001961/0.366, allocations: 1.509 MB / 491.8 MB, free: 7.434 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001685/0.3677, allocations: 0.8983 MB / 492.7 MB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3677, allocations: 320 / 492.7 MB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000723/0.3684, allocations: 460.8 kB / 493.2 MB, free: 6.023 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.3699, allocations: 341.7 kB / 493.5 MB, free: 5.703 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0167/0.3866, allocations: 10.93 MB / 0.4926 GB, free: 9.953 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009491/0.3875, allocations: 1.174 MB / 0.4938 GB, free: 8.746 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006059/0.3881, allocations: 175.3 kB / 0.4939 GB, free: 8.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007443/0.3889, allocations: 0.5735 MB / 0.4945 GB, free: 7.996 MB / 414.1 MB Notification: Performance of SimCode: time 1.442e-06/0.3889, allocations: 0 / 0.4945 GB, free: 7.996 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1002/0.4891, allocations: 28.04 MB / 0.5219 GB, free: 12.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.52, allocations: 2.5 kB / 0.5219 GB, free: 12.26 MB / 446.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_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_QuasiStatic.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.898813053034246] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcpm1.ia', 'dcpm1.tauElectrical', 'dcpm2.ia', 'dcpm2.tauElectrical', 'loadInertia1.phi', 'loadInertia1.w', 'loadInertia2.phi', 'loadInertia2.w'] 12.617538133868948 12.638333897 12.323651105 Calling exit ...