Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0008277/0.0008277, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000823/0.000823, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9443/0.9443, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 324.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.764e-05/1.952e-05, allocations: 6.281 kB / 324.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002305/0.002325, allocations: 1.868 MB / 326.4 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.003702, allocations: 1.133 MB / 327.5 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.283e-05/0.003785, allocations: 4 kB / 327.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008857/0.004671, allocations: 490.3 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.004849, allocations: 199.3 kB / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003948/0.005243, allocations: 166.6 kB / 328.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003097/0.005553, allocations: 235 kB / 328.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.005657, allocations: 9.797 kB / 328.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002387/0.005896, allocations: 151.6 kB / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.006101, allocations: 215.7 kB / 328.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.006128, allocations: 8 kB / 328.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.006269, allocations: 67.78 kB / 329 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.006419, allocations: 263.3 kB / 329.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.581e-05/0.006515, allocations: 139.5 kB / 329.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005382/0.007053, allocations: 0.728 MB / 330.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.007056, allocations: 0 / 330.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.007058, allocations: 0 / 330.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.007064, allocations: 3.938 kB / 330.1 MB, free: 10.11 MB / 298.7 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.001874/0.008938, allocations: 1.129 MB / 331.3 MB, free: 8.949 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.008987, allocations: 15.98 kB / 331.3 MB, free: 8.934 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.753e-05/0.009025, allocations: 30.75 kB / 331.3 MB, free: 8.895 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/0.009155, allocations: 96.31 kB / 331.4 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006993/0.009854, allocations: 0.7024 MB / 332.1 MB, free: 8.059 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.009867, allocations: 384 / 332.1 MB, free: 8.059 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.45e-05/0.009881, allocations: 4.375 kB / 332.1 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.01008, allocations: 114.1 kB / 332.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.01009, allocations: 192 / 332.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.0101, allocations: 8.109 kB / 332.2 MB, free: 7.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.01011, allocations: 4 kB / 332.2 MB, free: 7.926 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.01033, allocations: 139.9 kB / 332.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007701/0.0111, allocations: 0.7121 MB / 333.1 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001583/0.01126, allocations: 82.52 kB / 333.2 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.01136, allocations: 80.78 kB / 333.2 MB, free: 6.863 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.01138, allocations: 3.984 kB / 333.2 MB, free: 6.859 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.0114, allocations: 38.55 kB / 333.3 MB, free: 6.812 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.934e-06/0.01141, allocations: 3.938 kB / 333.3 MB, free: 6.809 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0005108/0.01192, allocations: 325 kB / 333.6 MB, free: 6.484 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.01195, allocations: 55.34 kB / 333.7 MB, free: 6.418 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.01305, allocations: 1.409 MB / 335.1 MB, free: 4.988 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.01307, allocations: 25.7 kB / 335.1 MB, free: 4.957 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/0.0133, allocations: 388.4 kB / 335.5 MB, free: 4.574 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.01332, allocations: 7.938 kB / 335.5 MB, free: 4.566 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.01336, allocations: 21.72 kB / 335.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.799e-05/0.01344, allocations: 306 kB / 335.8 MB, free: 4.234 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.01354, allocations: 71.88 kB / 335.9 MB, free: 4.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.01365, allocations: 86.52 kB / 336 MB, free: 4.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002053/0.01386, allocations: 154.5 kB / 336.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.01386, allocations: 0 / 336.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003451/0.0142, allocations: 280.8 kB / 336.4 MB, free: 3.629 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.01422, allocations: 4 kB / 336.4 MB, free: 3.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.01423, allocations: 8 kB / 336.4 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.01424, allocations: 3.938 kB / 336.4 MB, free: 3.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.01435, allocations: 11.98 kB / 336.4 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.01436, allocations: 4 kB / 336.4 MB, free: 3.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.341e-05/0.01445, allocations: 7.984 kB / 336.4 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.01447, allocations: 8 kB / 336.4 MB, free: 3.582 MB / 298.7 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.0002428/0.01471, allocations: 341.7 kB / 336.8 MB, free: 3.238 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.01481, allocations: 99.34 kB / 336.9 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000386/0.0152, allocations: 273.7 kB / 337.1 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.0152, allocations: 8.031 kB / 337.1 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.01521, allocations: 4 kB / 337.1 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.01521, allocations: 0 / 337.1 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003344/0.01555, allocations: 429.9 kB / 337.6 MB, free: 2.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.01555, allocations: 3.938 kB / 337.6 MB, free: 2.387 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.136e-05/0.01559, allocations: 11.98 kB / 337.6 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.0156, allocations: 0 / 337.6 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.01561, allocations: 0 / 337.6 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.01561, allocations: 4 kB / 337.6 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.01561, allocations: 0 / 337.6 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005561/0.01617, allocations: 327.3 kB / 337.9 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.01635, allocations: 151.3 kB / 338 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.769e-05/0.01639, allocations: 4 kB / 338 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.559e-05/0.01649, allocations: 7.984 kB / 338.1 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.01652, allocations: 7.938 kB / 338.1 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.01653, allocations: 0 / 338.1 MB, free: 1.867 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007856/0.01731, allocations: 1.017 MB / 339.1 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01731, allocations: 0 / 339.1 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002328/0.01755, allocations: 63.94 kB / 339.1 MB, free: 0.7734 MB / 298.7 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.0005814/0.01813, allocations: 0.8797 MB / 340 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00023/0.01836, allocations: 123.8 kB / 340.1 MB, free: 15.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.01836, allocations: 4.188 kB / 340.1 MB, free: 15.74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.904e-05/0.01845, allocations: 51.95 kB / 340.2 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.01884, allocations: 101 kB / 340.3 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009596/0.02844, allocations: 8.878 MB / 349.2 MB, free: 6.562 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.02871, allocations: 400.1 kB / 349.6 MB, free: 6.152 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004462/0.02916, allocations: 478.3 kB / 350 MB, free: 5.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.02938, allocations: 248.4 kB / 350.3 MB, free: 5.438 MB / 314.7 MB Notification: Performance of SimCode: time 1.363e-06/0.02938, allocations: 0 / 350.3 MB, free: 5.438 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.06164, allocations: 17.44 MB / 367.7 MB, free: 4.156 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.241/7.303, allocations: 7.109 kB / 367.7 MB, free: 4.152 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.282928203232586]