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.001289/0.001289, 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.001444/0.001444, 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.519/1.519, allocations: 230.5 MB / 257 MB, free: 8.258 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.002377/0.002377, allocations: 67.89 kB / 377.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3396, allocations: 53.31 MB / 430.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003434/0.343, allocations: 1.935 MB / 432.3 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.345, allocations: 1.269 MB / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.562e-05/0.345, allocations: 4 kB / 433.6 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.3461, allocations: 0.4995 MB / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.3463, allocations: 195.4 kB / 434.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.3468, allocations: 178 kB / 434.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003286/0.3471, allocations: 219.1 kB / 434.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.311e-05/0.3472, allocations: 9.688 kB / 434.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.3474, allocations: 127.5 kB / 434.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.3477, allocations: 235.4 kB / 435 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.3477, allocations: 8 kB / 435 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.3479, allocations: 63.91 kB / 435.1 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002236/0.3481, allocations: 267.2 kB / 435.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002458/0.3484, allocations: 277.9 kB / 435.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008255/0.3492, allocations: 0.7733 MB / 436.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3492, allocations: 0 / 436.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3492, allocations: 4 kB / 436.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.3492, allocations: 0 / 436.4 MB, free: 1.195 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.002955/0.3522, allocations: 1.201 MB / 437.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.3522, allocations: 12.03 kB / 437.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.798e-05/0.3523, allocations: 34.75 kB / 437.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.3525, allocations: 96.27 kB / 437.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.3537, allocations: 0.7634 MB / 438.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.3537, allocations: 4.375 kB / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.815e-05/0.3537, allocations: 384 / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.354, allocations: 117.7 kB / 438.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.354, allocations: 0 / 438.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.354, allocations: 0 / 438.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.354, allocations: 0 / 438.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003571/0.3544, allocations: 143.9 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.3557, allocations: 0.8143 MB / 439.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.3559, allocations: 86.45 kB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.3561, allocations: 72.89 kB / 439.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.3561, allocations: 7.984 kB / 439.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.3561, allocations: 34.56 kB / 439.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.3561, allocations: 0 / 439.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008268/0.357, allocations: 328.9 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.357, allocations: 59.34 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/0.3588, allocations: 1.405 MB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.3588, allocations: 25.7 kB / 441.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003536/0.3592, allocations: 388.4 kB / 442 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.3592, allocations: 11.95 kB / 442 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.251e-05/0.3593, allocations: 21.7 kB / 442 MB, free: 11.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3594, allocations: 313.9 kB / 442.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.3596, allocations: 63.94 kB / 442.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.3598, allocations: 82.53 kB / 442.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.3601, allocations: 166.4 kB / 442.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3601, allocations: 4 kB / 442.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005714/0.3607, allocations: 261 kB / 442.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3607, allocations: 12 kB / 442.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3607, allocations: 0 / 442.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.3607, allocations: 0 / 442.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.3609, allocations: 15.98 kB / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3609, allocations: 0 / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.3611, allocations: 15.94 kB / 442.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.3611, allocations: 3.938 kB / 442.9 MB, free: 10.4 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.0003549/0.3615, allocations: 345.6 kB / 443.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.3616, allocations: 91.44 kB / 443.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005973/0.3622, allocations: 273.5 kB / 443.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3622, allocations: 0 / 443.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3623, allocations: 4 kB / 443.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3623, allocations: 0 / 443.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005943/0.3629, allocations: 0.5182 MB / 444.1 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3629, allocations: 4 kB / 444.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.506e-05/0.3629, allocations: 7.984 kB / 444.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3629, allocations: 4 kB / 444.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.3629, allocations: 0 / 444.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.3629, allocations: 0 / 444.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3629, allocations: 0 / 444.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005264/0.3635, allocations: 327.2 kB / 444.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004024/0.3639, allocations: 232.4 kB / 444.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.391e-05/0.3639, allocations: 4 kB / 444.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.3641, allocations: 7.984 kB / 444.7 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.3642, allocations: 0 / 444.7 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.3642, allocations: 4 kB / 444.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001274/0.3654, allocations: 1.021 MB / 445.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3654, allocations: 0 / 445.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003378/0.3658, allocations: 60 kB / 445.8 MB, free: 7.414 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.0009591/0.3667, allocations: 0.8719 MB / 446.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000381/0.3671, allocations: 127.8 kB / 446.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3671, allocations: 0 / 446.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.3673, allocations: 51.95 kB / 446.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000564/0.3679, allocations: 103.8 kB / 446.9 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/0.38, allocations: 8.787 MB / 455.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007467/0.3808, allocations: 1.001 MB / 456.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006876/0.3815, allocations: 478 kB / 457.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.3818, allocations: 243.4 kB / 457.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3818, allocations: 0 / 457.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0453/0.4271, allocations: 16.17 MB / 473.6 MB, free: 11.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.518/9.945, allocations: 2.641 kB / 473.6 MB, free: 11.55 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.332541638985276] Failed to read output from testmodel.py, exit status != 0: ['time', 'impedance.z.re', 'impedance.z.im'] 10.027202693978325 10.042314643 9.690002656 Calling exit ...