Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.001273/0.001273, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001438/0.001438, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.6 MB / 258.3 MB, free: 8.031 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.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance",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.001952/0.001952, allocations: 72.75 kB / 378.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3326, allocations: 53.36 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003283/0.3358, allocations: 1.933 MB / 433.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.3378, allocations: 1.269 MB / 435.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.606e-05/0.3379, allocations: 4 kB / 435.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001029/0.3389, allocations: 0.5024 MB / 435.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002443/0.3392, allocations: 199.4 kB / 435.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004496/0.3396, allocations: 171.4 kB / 436 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003459/0.3399, allocations: 227.1 kB / 436.2 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.238e-05/0.34, allocations: 13.75 kB / 436.2 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002372/0.3403, allocations: 131.5 kB / 436.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003139/0.3406, allocations: 231.4 kB / 436.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.415e-05/0.3406, allocations: 8 kB / 436.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.3408, allocations: 67.91 kB / 436.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000232/0.341, allocations: 263.3 kB / 436.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002564/0.3413, allocations: 277.9 kB / 437.2 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008897/0.3421, allocations: 0.7701 MB / 437.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3421, allocations: 0 / 437.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3422, allocations: 0 / 437.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.3422, allocations: 0 / 437.9 MB, free: 0.8398 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002777/0.3449, allocations: 1.129 MB / 439.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.345, allocations: 8.031 kB / 439.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.078e-05/0.345, allocations: 38.69 kB / 439.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001917/0.3452, allocations: 100.3 kB / 439.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.3463, allocations: 0.7031 MB / 439.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.3463, allocations: 384 / 439.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.3464, allocations: 4.375 kB / 439.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.3467, allocations: 121.7 kB / 440 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.3467, allocations: 0 / 440 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.3467, allocations: 0 / 440 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3467, allocations: 0 / 440 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003677/0.347, allocations: 143.9 kB / 440.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.3482, allocations: 0.7937 MB / 441 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.3484, allocations: 82.52 kB / 441 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.3486, allocations: 76.89 kB / 441.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.3486, allocations: 0 / 441.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.3487, allocations: 38.55 kB / 441.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 7.11e-07/0.3487, allocations: 0 / 441.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008691/0.3495, allocations: 332.9 kB / 441.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.3496, allocations: 51.41 kB / 441.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001787/0.3514, allocations: 1.401 MB / 442.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.3514, allocations: 29.7 kB / 443 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003479/0.3517, allocations: 384.4 kB / 443.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.3518, allocations: 15.94 kB / 443.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.953e-05/0.3518, allocations: 17.72 kB / 443.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.352, allocations: 313.9 kB / 443.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.3522, allocations: 63.94 kB / 443.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.3523, allocations: 86.52 kB / 443.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000373/0.3527, allocations: 162.4 kB / 444 MB, free: 10.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3527, allocations: 0 / 444 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006015/0.3533, allocations: 268.9 kB / 444.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.3533, allocations: 8.094 kB / 444.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3533, allocations: 3.938 kB / 444.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.3534, allocations: 4 kB / 444.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.3536, allocations: 11.98 kB / 444.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.3536, allocations: 0 / 444.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.3538, allocations: 15.94 kB / 444.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.3538, allocations: 4 kB / 444.3 MB, free: 10.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003775/0.3542, allocations: 345.6 kB / 444.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.3543, allocations: 95.42 kB / 444.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006186/0.355, allocations: 277.6 kB / 445 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.355, allocations: 0 / 445 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.355, allocations: 4 kB / 445 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.355, allocations: 0 / 445 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006026/0.3556, allocations: 497.8 kB / 445.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3556, allocations: 0 / 445.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.873e-05/0.3557, allocations: 11.98 kB / 445.5 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.3557, allocations: 0 / 445.5 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.3557, allocations: 3.984 kB / 445.5 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.3557, allocations: 3.938 kB / 445.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3557, allocations: 0 / 445.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000529/0.3562, allocations: 335.2 kB / 445.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003512/0.3566, allocations: 151.3 kB / 446 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.931e-05/0.3567, allocations: 4 kB / 446 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002928/0.3569, allocations: 7.984 kB / 446 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.304e-05/0.357, allocations: 7.984 kB / 446 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.357, allocations: 0 / 446 MB, free: 8.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001449/0.3585, allocations: 1.017 MB / 447 MB, free: 7.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3585, allocations: 4 kB / 447 MB, free: 7.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003413/0.3588, allocations: 60 kB / 447.1 MB, free: 7.363 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009447/0.3597, allocations: 0.8603 MB / 447.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.3601, allocations: 127.8 kB / 448.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3601, allocations: 0 / 448.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.3603, allocations: 51.97 kB / 448.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005793/0.3609, allocations: 104.4 kB / 448.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/0.3734, allocations: 8.803 MB / 457 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008348/0.3742, allocations: 0.9967 MB / 458 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000803/0.375, allocations: 478.3 kB / 458.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000347/0.3754, allocations: 243.4 kB / 458.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3754, allocations: 0 / 458.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04804/0.4234, allocations: 16.18 MB / 474.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.904/10.33, allocations: 0 / 474.9 MB, free: 11.48 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.77816679701209] Failed to read output from testmodel.py, exit status != 0: ['time', 'impedance.z.re', 'impedance.z.im'] 10.405209661927074 10.421806099 10.076463118 Calling exit ...