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.DCSE_SinglePhase.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.001895/0.001895, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.002165/0.002165, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.475/1.475, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.001929/0.001929, allocations: 71.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1037, allocations: 53.34 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.2139/0.3176, allocations: 8.27 MB / 435.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004238/0.3218, allocations: 2.758 MB / 438.1 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008834/0.3227, allocations: 27.59 kB / 438.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.3241, allocations: 0.5764 MB / 438.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.3253, allocations: 0.5036 MB / 439.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005688/0.3259, allocations: 268.1 kB / 439.4 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001516/0.3274, allocations: 1.508 MB / 440.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005869/0.328, allocations: 406.7 kB / 441.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007797/0.3288, allocations: 0.5818 MB / 441.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006428/0.3294, allocations: 0.6203 MB / 442.5 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001794/0.3296, allocations: 139.9 kB / 442.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003843/0.33, allocations: 183.6 kB / 442.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.3302, allocations: 288.1 kB / 443.1 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000517/0.3307, allocations: 0.6716 MB / 443.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002137/0.3328, allocations: 1.765 MB / 445.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3328, allocations: 0 / 445.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3328, allocations: 0 / 445.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.771e-05/0.3328, allocations: 1.219 kB / 445.6 MB, free: 2.273 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002456/0.3353, allocations: 1.521 MB / 447.1 MB, free: 1.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.3353, allocations: 13.56 kB / 447.1 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000163/0.3355, allocations: 147.1 kB / 447.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007349/0.3362, allocations: 206.5 kB / 447.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.3374, allocations: 0.7733 MB / 448.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.185e-05/0.3374, allocations: 71.25 kB / 448.3 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.3376, allocations: 104.8 kB / 448.4 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.3391, allocations: 0.9383 MB / 449.3 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.3391, allocations: 9.953 kB / 449.3 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.3392, allocations: 38.94 kB / 449.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.436e-05/0.3392, allocations: 24.16 kB / 449.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.3406, allocations: 0.6503 MB / 450 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005808/0.3464, allocations: 3.922 MB / 454 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008016/0.3472, allocations: 434.7 kB / 454.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005989/0.3478, allocations: 261.2 kB / 454.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.3478, allocations: 4.844 kB / 454.7 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.3478, allocations: 37.44 kB / 454.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.043e-06/0.3478, allocations: 0 / 454.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003332/0.3512, allocations: 1.568 MB / 456.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.3512, allocations: 82.31 kB / 456.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.3523, allocations: 0.8445 MB / 457.2 MB, free: 11.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.3524, allocations: 35.08 kB / 457.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004471/0.3528, allocations: 0.5786 MB / 457.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.353, allocations: 174.6 kB / 458 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.3532, allocations: 131.8 kB / 458.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3534, allocations: 333.2 kB / 458.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/0.3537, allocations: 174.5 kB / 458.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006128/0.3543, allocations: 466.2 kB / 459 MB, free: 9.703 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.3554, allocations: 0.6846 MB / 459.7 MB, free: 9.125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.3554, allocations: 2.281 kB / 459.7 MB, free: 9.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001443/0.3568, allocations: 0.7849 MB / 460.5 MB, free: 8.727 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3568, allocations: 9.969 kB / 460.5 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.3569, allocations: 13.47 kB / 460.5 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002956/0.3572, allocations: 87.7 kB / 460.6 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005321/0.3577, allocations: 159.2 kB / 460.8 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.3606, allocations: 3.142 MB / 463.9 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007432/0.3613, allocations: 38.88 kB / 464 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/0.3614, allocations: 31.19 kB / 464 MB, free: 5.445 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004745/0.3618, allocations: 269.4 kB / 464.3 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.362, allocations: 91.12 kB / 464.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.3631, allocations: 0.4989 MB / 464.8 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/0.3631, allocations: 4.562 kB / 464.8 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3631, allocations: 1.188 kB / 464.8 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3631, allocations: 7.984 kB / 464.9 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002644/0.3658, allocations: 1.466 MB / 466.3 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.3658, allocations: 2.312 kB / 466.3 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003418/0.3661, allocations: 75.39 kB / 466.4 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002197/0.3663, allocations: 78.52 kB / 466.5 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.889e-05/0.3664, allocations: 8.125 kB / 466.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002888/0.3692, allocations: 3.125 MB / 469.6 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3692, allocations: 2.312 kB / 469.6 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.3707, allocations: 0.8101 MB / 470.4 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003777/0.3711, allocations: 210.3 kB / 470.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.3712, allocations: 12.78 kB / 470.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004462/0.3716, allocations: 39.59 kB / 470.7 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.3717, allocations: 30.75 kB / 470.7 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.26e-05/0.3718, allocations: 17.86 kB / 470.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008993/0.3727, allocations: 0.5708 MB / 471.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3727, allocations: 0 / 471.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009991/0.3737, allocations: 216.1 kB / 471.5 MB, free: 15.4 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * 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,5,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.001868/0.3755, allocations: 1.368 MB / 472.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.3769, allocations: 0.6882 MB / 473.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.3769, allocations: 0 / 473.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000743/0.3777, allocations: 451 kB / 474 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.3788, allocations: 233.8 kB / 474.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/0.3908, allocations: 7.495 MB / 481.7 MB, free: 8.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007816/0.3916, allocations: 1.017 MB / 482.7 MB, free: 7.262 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004842/0.392, allocations: 103.1 kB / 482.8 MB, free: 7.164 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000519/0.3926, allocations: 391.3 kB / 483.2 MB, free: 6.785 MB / 382.1 MB Notification: Performance of SimCode: time 1.543e-06/0.3926, allocations: 0 / 483.2 MB, free: 6.785 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08206/0.4746, allocations: 19.63 MB / 0.4911 GB, free: 3.473 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.76, allocations: 3.75 kB / 0.4911 GB, free: 3.473 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_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_DCSE_SinglePhase.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.344553903210908] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcse.la.i', 'loadInertia.phi', 'loadInertia.w'] 11.85418170876801 11.869684196 11.533940466 Calling exit ...