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.0009789/0.0009789, 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.0008923/0.0008923, 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.9029/0.9029, allocations: 177 MB / 204.1 MB, free: 5.734 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.984e-06/1.984e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.087e-05/2.285e-05, allocations: 3.266 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00263/0.002652, allocations: 1.855 MB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.003803, allocations: 1.141 MB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.003886, allocations: 4 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007841/0.00467, allocations: 498.3 kB / 328 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.004832, allocations: 195.3 kB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.005198, allocations: 159.3 kB / 328.3 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003313/0.00553, allocations: 231 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.005646, allocations: 17.78 kB / 328.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002695/0.005915, allocations: 147.6 kB / 328.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.006142, allocations: 215.7 kB / 328.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.006168, allocations: 11.94 kB / 328.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.006309, allocations: 59.84 kB / 329 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001893/0.006498, allocations: 263.3 kB / 329.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.006605, allocations: 143.4 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006148/0.00722, allocations: 0.728 MB / 330.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.007223, allocations: 0 / 330.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.007224, allocations: 0 / 330.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.007235, allocations: 11.92 kB / 330.1 MB, free: 10.21 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.001503/0.008738, allocations: 1.118 MB / 331.3 MB, free: 9.055 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.008786, allocations: 15.98 kB / 331.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.585e-05/0.008822, allocations: 34.75 kB / 331.3 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.008941, allocations: 96.31 kB / 331.4 MB, free: 8.902 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006526/0.009594, allocations: 0.6985 MB / 332.1 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.009608, allocations: 4.312 kB / 332.1 MB, free: 8.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.414e-05/0.009622, allocations: 8.375 kB / 332.1 MB, free: 8.152 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.009814, allocations: 114.1 kB / 332.2 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.009821, allocations: 4.188 kB / 332.2 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.009835, allocations: 8.125 kB / 332.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/0.009839, allocations: 0 / 332.2 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.01004, allocations: 139.9 kB / 332.4 MB, free: 7.887 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006774/0.01071, allocations: 0.7082 MB / 333.1 MB, free: 7.137 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.01086, allocations: 94.45 kB / 333.2 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.01096, allocations: 72.83 kB / 333.2 MB, free: 6.961 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.01098, allocations: 7.984 kB / 333.3 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.01131, allocations: 34.56 kB / 333.3 MB, free: 6.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.051e-06/0.01131, allocations: 0 / 333.3 MB, free: 6.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0005026/0.01181, allocations: 321 kB / 333.6 MB, free: 6.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.01185, allocations: 59.34 kB / 333.7 MB, free: 6.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/0.01289, allocations: 1.409 MB / 335.1 MB, free: 5.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.01291, allocations: 25.7 kB / 335.1 MB, free: 5.059 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002212/0.01313, allocations: 392.3 kB / 335.5 MB, free: 4.672 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.01315, allocations: 7.953 kB / 335.5 MB, free: 4.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.734e-05/0.01319, allocations: 17.72 kB / 335.5 MB, free: 4.641 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.891e-05/0.01327, allocations: 314 kB / 335.8 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.624e-05/0.01336, allocations: 63.95 kB / 335.9 MB, free: 4.266 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.01347, allocations: 86.52 kB / 336 MB, free: 4.172 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001926/0.01366, allocations: 154.5 kB / 336.1 MB, free: 4.012 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.01366, allocations: 3.938 kB / 336.1 MB, free: 4.008 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000335/0.014, allocations: 280.8 kB / 336.4 MB, free: 3.727 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.01401, allocations: 11.12 kB / 336.4 MB, free: 3.719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.01402, allocations: 4.094 kB / 336.4 MB, free: 3.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.01403, allocations: 4 kB / 336.4 MB, free: 3.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.01414, allocations: 15.98 kB / 336.4 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.01414, allocations: 0 / 336.4 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.069e-05/0.01424, allocations: 7.984 kB / 336.4 MB, free: 3.688 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.01425, allocations: 4 kB / 336.4 MB, free: 3.684 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.0002323/0.01448, allocations: 345.6 kB / 336.8 MB, free: 3.336 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.01458, allocations: 95.36 kB / 336.9 MB, free: 3.242 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003628/0.01494, allocations: 277.6 kB / 337.1 MB, free: 2.961 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.01495, allocations: 8.031 kB / 337.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.01495, allocations: 0 / 337.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.01495, allocations: 0 / 337.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003148/0.01527, allocations: 426 kB / 337.6 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.01528, allocations: 7.938 kB / 337.6 MB, free: 2.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.101e-05/0.01532, allocations: 11.98 kB / 337.6 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.01532, allocations: 3.938 kB / 337.6 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.01533, allocations: 4 kB / 337.6 MB, free: 2.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.01533, allocations: 0 / 337.6 MB, free: 2.469 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01533, allocations: 0 / 337.6 MB, free: 2.469 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002865/0.01562, allocations: 319.3 kB / 337.9 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.0158, allocations: 155.3 kB / 338 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/0.01583, allocations: 0 / 338 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.044e-05/0.01592, allocations: 19.98 kB / 338.1 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.628e-05/0.01596, allocations: 3.938 kB / 338.1 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-06/0.01596, allocations: 3.984 kB / 338.1 MB, free: 1.961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007906/0.01675, allocations: 1.021 MB / 339.1 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.01676, allocations: 0 / 339.1 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002177/0.01697, allocations: 60 kB / 339.1 MB, free: 0.8672 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.0005715/0.01754, allocations: 0.8748 MB / 340 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002244/0.01777, allocations: 127.8 kB / 340.1 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01777, allocations: 0 / 340.1 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.576e-05/0.01786, allocations: 47.97 kB / 340.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.01825, allocations: 109.2 kB / 340.3 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009855/0.02811, allocations: 8.878 MB / 349.2 MB, free: 6.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.0284, allocations: 400.1 kB / 349.6 MB, free: 6.25 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004255/0.02883, allocations: 474.3 kB / 350 MB, free: 5.781 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/0.02905, allocations: 248.4 kB / 350.3 MB, free: 5.539 MB / 314.7 MB Notification: Performance of SimCode: time 1.233e-06/0.02905, allocations: 7.938 kB / 350.3 MB, free: 5.531 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02895/0.058, allocations: 17.42 MB / 367.7 MB, free: 4.262 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.294/7.352, allocations: 7.922 kB / 367.7 MB, free: 4.254 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/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.28785371594131]