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.001853/0.001853, allocations: 122.7 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.002092/0.002092, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.524/1.524, allocations: 230.5 MB / 254.7 MB, free: 15 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.001901/0.001901, allocations: 67.89 kB / 373.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1019, allocations: 53.32 MB / 426.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00311/0.105, allocations: 1.929 MB / 428.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.1068, allocations: 1.253 MB / 430 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.289e-05/0.1069, allocations: 0 / 430 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009916/0.1079, allocations: 0.5063 MB / 430.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002269/0.1081, allocations: 195.4 kB / 430.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.1086, allocations: 171.3 kB / 430.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003412/0.1089, allocations: 223.1 kB / 431.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.586e-05/0.109, allocations: 21.67 kB / 431.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.1092, allocations: 123.6 kB / 431.3 MB, free: 436 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002793/0.1095, allocations: 227.4 kB / 431.5 MB, free: 208 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.1095, allocations: 8 kB / 431.5 MB, free: 200 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.1097, allocations: 67.94 kB / 431.6 MB, free: 132 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2248/0.3345, allocations: 260.7 kB / 431.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003157/0.3348, allocations: 277 kB / 432.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009541/0.3358, allocations: 0.7701 MB / 432.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3358, allocations: 1.312 kB / 432.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3358, allocations: 0.625 kB / 432.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.3358, allocations: 0 / 432.9 MB, free: 7.715 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.002709/0.3385, allocations: 1.211 MB / 434.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.3386, allocations: 9.781 kB / 434.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.232e-05/0.3386, allocations: 33.25 kB / 434.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002146/0.3388, allocations: 95.12 kB / 434.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.3399, allocations: 0.7584 MB / 435 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.3399, allocations: 2.031 kB / 435 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.084e-05/0.3399, allocations: 3.219 kB / 435 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002766/0.3402, allocations: 119.9 kB / 435.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.3402, allocations: 1.562 kB / 435.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.3402, allocations: 2.453 kB / 435.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.3402, allocations: 1.188 kB / 435.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003339/0.3406, allocations: 146.6 kB / 435.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.342, allocations: 0.8084 MB / 436 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.3422, allocations: 88.95 kB / 436.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.3424, allocations: 74.28 kB / 436.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.3424, allocations: 0 / 436.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.3424, allocations: 35.92 kB / 436.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3424, allocations: 0 / 436.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0009208/0.3433, allocations: 331.7 kB / 436.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.3434, allocations: 53.06 kB / 436.6 MB, free: 5.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002056/0.3454, allocations: 1.403 MB / 438 MB, free: 5.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.3454, allocations: 26.64 kB / 438 MB, free: 5.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.3457, allocations: 391 kB / 438.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.775e-05/0.3457, allocations: 9.844 kB / 438.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.987e-05/0.3458, allocations: 24.33 kB / 438.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.168e-05/0.3459, allocations: 308.2 kB / 438.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.346, allocations: 70.95 kB / 438.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.3462, allocations: 84.44 kB / 438.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/0.3466, allocations: 163.6 kB / 439.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3466, allocations: 1.5 kB / 439.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006282/0.3472, allocations: 267 kB / 439.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.3472, allocations: 5.688 kB / 439.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3472, allocations: 1.219 kB / 439.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.3472, allocations: 1.062 kB / 439.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.3474, allocations: 17.64 kB / 439.4 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.3474, allocations: 1.688 kB / 439.4 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/0.3477, allocations: 13.14 kB / 439.4 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.3477, allocations: 2.047 kB / 439.4 MB, free: 5.211 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.0003891/0.3481, allocations: 345.3 kB / 439.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.3483, allocations: 92.91 kB / 439.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006268/0.3489, allocations: 270.8 kB / 440.1 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.3489, allocations: 9.844 kB / 440.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3489, allocations: 0.9844 kB / 440.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3489, allocations: 1.859 kB / 440.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006758/0.3496, allocations: 0.5077 MB / 440.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.3496, allocations: 5.438 kB / 440.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.116e-05/0.3497, allocations: 15.14 kB / 440.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3497, allocations: 1.156 kB / 440.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.3497, allocations: 2.672 kB / 440.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.3497, allocations: 0 / 440.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3497, allocations: 1.031 kB / 440.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004618/0.3502, allocations: 329.2 kB / 440.9 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004014/0.3506, allocations: 226.6 kB / 441.2 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.179e-05/0.3506, allocations: 6.312 kB / 441.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.3508, allocations: 5.875 kB / 441.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.3509, allocations: 9.734 kB / 441.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.3509, allocations: 5.188 kB / 441.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001498/0.3524, allocations: 1.014 MB / 442.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3524, allocations: 1.188 kB / 442.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004162/0.3528, allocations: 63.31 kB / 442.3 MB, free: 3.844 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.0007803/0.3536, allocations: 0.8641 MB / 443.1 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003848/0.354, allocations: 130.8 kB / 443.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.354, allocations: 0 / 443.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.3541, allocations: 52.38 kB / 443.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006697/0.3548, allocations: 99.81 kB / 443.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.3678, allocations: 8.784 MB / 452.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000832/0.3687, allocations: 1.001 MB / 453.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008624/0.3695, allocations: 472.8 kB / 453.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003921/0.3699, allocations: 246.3 kB / 453.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3699, allocations: 0 / 453.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05064/0.4206, allocations: 16.17 MB / 470.1 MB, free: 4.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.379/9.8, allocations: 9.766 kB / 470.1 MB, free: 4.809 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 & /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.276764845941216] Failed to read output from testmodel.py, exit status != 0: ['time', 'impedance.z.re', 'impedance.z.im'] 9.875532946083695 9.889864403 9.551270367 Calling exit ...