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.001519/0.001519, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.001782/0.001782, allocations: 215.2 kB / 21.46 MB, free: 1.59 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.446/1.446, allocations: 230.5 MB / 254.8 MB, free: 15.25 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.002003/0.002003, allocations: 67.83 kB / 373.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1077, allocations: 53.33 MB / 427 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003191/0.1109, allocations: 1.928 MB / 428.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.1126, allocations: 1.257 MB / 430.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.145e-05/0.1127, allocations: 4 kB / 430.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009822/0.1137, allocations: 0.5024 MB / 430.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002214/0.1139, allocations: 199.4 kB / 430.9 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004228/0.1143, allocations: 175.3 kB / 431 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.1147, allocations: 223.1 kB / 431.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.685e-05/0.1147, allocations: 9.688 kB / 431.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.115, allocations: 131.5 kB / 431.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002652/0.1152, allocations: 231.4 kB / 431.6 MB, free: 284 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.212e-05/0.1152, allocations: 8 kB / 431.6 MB, free: 276 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.1154, allocations: 63.95 kB / 431.7 MB, free: 212 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2265/0.3419, allocations: 261.8 kB / 432 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000281/0.3422, allocations: 278.6 kB / 432.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009038/0.3431, allocations: 0.7667 MB / 433 MB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3431, allocations: 6.844 kB / 433 MB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3431, allocations: 0 / 433 MB, free: 7.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.3431, allocations: 0 / 433 MB, free: 7.742 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002355/0.3455, allocations: 1.208 MB / 434.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.3455, allocations: 9.406 kB / 434.2 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.132e-05/0.3456, allocations: 37.06 kB / 434.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001579/0.3457, allocations: 95.86 kB / 434.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008407/0.3466, allocations: 0.7531 MB / 435.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.3466, allocations: 4.781 kB / 435.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.3466, allocations: 2.375 kB / 435.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002605/0.3469, allocations: 123.4 kB / 435.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3469, allocations: 1.062 kB / 435.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.3469, allocations: 0 / 435.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3469, allocations: 1.219 kB / 435.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.3472, allocations: 145.7 kB / 435.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009445/0.3481, allocations: 0.8183 MB / 436.2 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/0.3484, allocations: 83.45 kB / 436.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.3485, allocations: 71.45 kB / 436.3 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.3485, allocations: 1.281 kB / 436.3 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.43e-05/0.3486, allocations: 35.88 kB / 436.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3486, allocations: 0 / 436.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008322/0.3494, allocations: 329.4 kB / 436.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.305e-05/0.3494, allocations: 53.25 kB / 436.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00174/0.3512, allocations: 1.407 MB / 438.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.3512, allocations: 29.73 kB / 438.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002627/0.3514, allocations: 387.2 kB / 438.6 MB, free: 5.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.601e-05/0.3515, allocations: 6.422 kB / 438.6 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-05/0.3515, allocations: 19.81 kB / 438.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.752e-05/0.3516, allocations: 312.2 kB / 438.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.3517, allocations: 65.95 kB / 439 MB, free: 5.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.3519, allocations: 87.38 kB / 439 MB, free: 5.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.3523, allocations: 162.8 kB / 439.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3523, allocations: 0 / 439.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006113/0.3529, allocations: 270.9 kB / 439.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.3529, allocations: 5.312 kB / 439.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.3529, allocations: 1.188 kB / 439.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.3529, allocations: 2.062 kB / 439.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001921/0.3531, allocations: 15.81 kB / 439.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.3531, allocations: 5.484 kB / 439.5 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/0.3533, allocations: 16.81 kB / 439.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.3534, allocations: 2.812 kB / 439.5 MB, free: 5.188 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.0003323/0.3537, allocations: 345.9 kB / 439.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.3539, allocations: 89.77 kB / 439.9 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006244/0.3545, allocations: 268.8 kB / 440.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.3545, allocations: 9.891 kB / 440.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3545, allocations: 2.438 kB / 440.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3545, allocations: 5.312 kB / 440.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006198/0.3552, allocations: 0.5114 MB / 440.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.3552, allocations: 0 / 440.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.517e-05/0.3552, allocations: 17.12 kB / 440.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.3552, allocations: 0.5625 kB / 440.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.3553, allocations: 1.875 kB / 440.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3553, allocations: 1.188 kB / 440.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3553, allocations: 0 / 440.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000485/0.3557, allocations: 328.1 kB / 441.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002708/0.356, allocations: 227.2 kB / 441.3 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.007e-05/0.3561, allocations: 2.625 kB / 441.3 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.3563, allocations: 9.391 kB / 441.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.3563, allocations: 5.391 kB / 441.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.367e-06/0.3563, allocations: 1.797 kB / 441.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001429/0.3578, allocations: 1.018 MB / 442.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3578, allocations: 0 / 442.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003716/0.3581, allocations: 61.09 kB / 442.4 MB, free: 3.82 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.0007583/0.3589, allocations: 0.8728 MB / 443.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004108/0.3593, allocations: 127.8 kB / 443.4 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3593, allocations: 0 / 443.4 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.3595, allocations: 49.59 kB / 443.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006208/0.3601, allocations: 102.3 kB / 443.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/0.3736, allocations: 8.787 MB / 452.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009322/0.3745, allocations: 1.003 MB / 453.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000962/0.3755, allocations: 472.3 kB / 453.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004071/0.3759, allocations: 245.4 kB / 454 MB, free: 14.68 MB / 366.1 MB Notification: Performance of SimCode: time 1.713e-06/0.3759, allocations: 0 / 454 MB, free: 14.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05227/0.4281, allocations: 16.18 MB / 470.2 MB, free: 4.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.386/9.814, allocations: 8 kB / 470.2 MB, free: 4.805 MB / 366.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.310307204723358] Failed to read output from testmodel.py, exit status != 0: ['time', 'impedance.z.re', 'impedance.z.im'] 9.892129788175225 9.919850962 9.571312639 Calling exit ...