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_Start.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.001782/0.001782, allocations: 121.2 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.002959/0.002959, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.441/1.441, allocations: 230.5 MB / 254.8 MB, free: 14.96 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_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",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.001935/0.001935, allocations: 75.81 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1039, allocations: 53.32 MB / 427 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.2167/0.3206, allocations: 7.188 MB / 434.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003508/0.3241, allocations: 2.389 MB / 436.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005127/0.3247, allocations: 21.59 kB / 436.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.3258, allocations: 0.514 MB / 437.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008196/0.3266, allocations: 416 kB / 437.5 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003776/0.327, allocations: 200.3 kB / 437.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001148/0.3281, allocations: 1.201 MB / 438.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004808/0.3286, allocations: 342.9 kB / 439.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006128/0.3292, allocations: 482.2 kB / 439.7 MB, free: 5.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004915/0.3297, allocations: 498.6 kB / 440.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.3299, allocations: 113.9 kB / 440.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002881/0.3301, allocations: 155 kB / 440.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.3303, allocations: 230 kB / 440.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004047/0.3307, allocations: 0.5436 MB / 441.3 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001607/0.3323, allocations: 1.436 MB / 442.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3323, allocations: 0.75 kB / 442.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3323, allocations: 4 kB / 442.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.3323, allocations: 0 / 442.7 MB, free: 4.039 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001916/0.3342, allocations: 1.277 MB / 444 MB, free: 3.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.3343, allocations: 10.12 kB / 444 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001303/0.3344, allocations: 127.5 kB / 444.1 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000473/0.3349, allocations: 147.7 kB / 444.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009896/0.3359, allocations: 0.6565 MB / 444.9 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.411e-05/0.3359, allocations: 61.28 kB / 445 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.3361, allocations: 89.42 kB / 445.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.3374, allocations: 0.7767 MB / 445.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.3374, allocations: 5.75 kB / 445.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.894e-05/0.3374, allocations: 31.91 kB / 445.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.3375, allocations: 19.25 kB / 445.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009606/0.3384, allocations: 0.5169 MB / 446.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003866/0.3423, allocations: 3.376 MB / 449.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005122/0.3428, allocations: 217.2 kB / 450 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/0.3431, allocations: 103.7 kB / 450.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.3431, allocations: 2.906 kB / 450.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.3431, allocations: 42.14 kB / 450.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.934e-06/0.3431, allocations: 0 / 450.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002244/0.3454, allocations: 1.056 MB / 451.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.3454, allocations: 81.02 kB / 451.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.3465, allocations: 0.7294 MB / 452 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.3465, allocations: 30.83 kB / 452 MB, free: 14.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004416/0.3469, allocations: 0.504 MB / 452.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.541e-05/0.347, allocations: 107.1 kB / 452.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.3472, allocations: 117.6 kB / 452.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002299/0.3474, allocations: 381 kB / 453.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/0.3477, allocations: 126 kB / 453.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005407/0.3483, allocations: 426.7 kB / 453.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008314/0.3491, allocations: 0.573 MB / 454.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3491, allocations: 2.281 kB / 454.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001138/0.3502, allocations: 0.6218 MB / 454.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.3503, allocations: 10.06 kB / 454.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.3503, allocations: 9.781 kB / 454.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001645/0.3504, allocations: 30 kB / 454.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004716/0.3509, allocations: 143.2 kB / 455 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.3521, allocations: 1.392 MB / 456.4 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005516/0.3527, allocations: 37.3 kB / 456.5 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/0.3527, allocations: 30.69 kB / 456.5 MB, free: 10.45 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003903/0.3531, allocations: 233.7 kB / 456.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.3532, allocations: 73.59 kB / 456.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007409/0.354, allocations: 323 kB / 457.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.354, allocations: 2.188 kB / 457.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.354, allocations: 2.031 kB / 457.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.354, allocations: 4.125 kB / 457.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0019/0.3559, allocations: 1.103 MB / 458.2 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3559, allocations: 1.375 kB / 458.2 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002586/0.3561, allocations: 61.78 kB / 458.3 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.42e-05/0.3562, allocations: 28.27 kB / 458.3 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.3562, allocations: 8.125 kB / 458.3 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.3573, allocations: 1.37 MB / 459.7 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3573, allocations: 2.75 kB / 459.7 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009362/0.3582, allocations: 0.551 MB / 460.3 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.3585, allocations: 181.8 kB / 460.4 MB, free: 7.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.942e-05/0.3586, allocations: 8.281 kB / 460.4 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003197/0.3589, allocations: 18.52 kB / 460.5 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.97e-05/0.359, allocations: 29.23 kB / 460.5 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.359, allocations: 8.25 kB / 460.5 MB, free: 7.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000725/0.3597, allocations: 0.5007 MB / 461 MB, free: 7.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3597, allocations: 4 kB / 461 MB, free: 7.191 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007714/0.3605, allocations: 162.4 kB / 461.2 MB, free: 7.176 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001424/0.3619, allocations: 1.137 MB / 462.3 MB, free: 6.262 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000983/0.3629, allocations: 450 kB / 462.7 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3629, allocations: 0 / 462.7 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003843/0.3633, allocations: 235.5 kB / 463 MB, free: 5.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009281/0.3642, allocations: 195.8 kB / 463.2 MB, free: 5.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009206/0.3734, allocations: 6.273 MB / 469.4 MB, free: 1.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005947/0.374, allocations: 0.9358 MB / 470.4 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004021/0.3744, allocations: 89.41 kB / 470.5 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000374/0.3748, allocations: 299.4 kB / 470.7 MB, free: 428 kB / 366.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3748, allocations: 0 / 470.7 MB, free: 428 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05067/0.4255, allocations: 15.57 MB / 486.3 MB, free: 4.348 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.1, allocations: 6.438 kB / 486.3 MB, free: 4.344 MB / 382.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.636396771296859] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcpm.la.i', 'loadInertia.phi', 'loadInertia.w'] 11.195415979251266 11.215467624 10.879240388 Calling exit ...