Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 214.4 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.425/1.425, allocations: 230.6 MB / 258.3 MB, free: 7.793 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 43.92 kB / 378.5 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2872, allocations: 53.36 MB / 431.8 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00327/0.2905, allocations: 1.861 MB / 433.7 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.2924, allocations: 1.133 MB / 434.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.482e-05/0.2925, allocations: 0 / 434.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.2936, allocations: 498.5 kB / 435.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002655/0.2938, allocations: 199.4 kB / 435.5 MB, free: 3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004889/0.2943, allocations: 163.4 kB / 435.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003777/0.2947, allocations: 219.1 kB / 435.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.2948, allocations: 17.75 kB / 435.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.2951, allocations: 127.5 kB / 436 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003192/0.2954, allocations: 231.4 kB / 436.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.2954, allocations: 8 kB / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.2956, allocations: 67.95 kB / 436.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002533/0.2958, allocations: 259.3 kB / 436.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002182/0.2961, allocations: 202.4 kB / 436.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009231/0.297, allocations: 0.7817 MB / 437.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.297, allocations: 3.938 kB / 437.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.297, allocations: 0 / 437.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.297, allocations: 4 kB / 437.6 MB, free: 0.9336 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.002659/0.2997, allocations: 1.132 MB / 438.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.2997, allocations: 8.031 kB / 438.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.305e-05/0.2997, allocations: 192 / 438.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.947e-05/0.2998, allocations: 34.75 kB / 438.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.3, allocations: 104.3 kB / 438.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009788/0.3009, allocations: 0.6953 MB / 439.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.301, allocations: 384 / 439.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.301, allocations: 4.375 kB / 439.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.3013, allocations: 121.5 kB / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.3013, allocations: 0 / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.3013, allocations: 3.984 kB / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.3013, allocations: 0 / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000349/0.3016, allocations: 147.9 kB / 439.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.3027, allocations: 0.7198 MB / 440.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.3029, allocations: 78.52 kB / 440.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.3031, allocations: 80.83 kB / 440.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.3031, allocations: 0 / 440.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.3031, allocations: 34.5 kB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.3031, allocations: 4 kB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008004/0.3039, allocations: 332.9 kB / 441.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.304, allocations: 51.41 kB / 441.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/0.3057, allocations: 1.409 MB / 442.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.3057, allocations: 25.7 kB / 442.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003589/0.3061, allocations: 388.4 kB / 442.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.3061, allocations: 7.953 kB / 442.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.744e-05/0.3062, allocations: 17.7 kB / 442.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3063, allocations: 317.9 kB / 443.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.3065, allocations: 67.89 kB / 443.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.3066, allocations: 86.52 kB / 443.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003583/0.307, allocations: 158.5 kB / 443.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.307, allocations: 0 / 443.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005784/0.3076, allocations: 272.9 kB / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3076, allocations: 4 kB / 443.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3076, allocations: 0 / 443.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.3076, allocations: 4 kB / 443.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000193/0.3078, allocations: 15.92 kB / 443.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.3078, allocations: 7.984 kB / 443.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.308, allocations: 7.984 kB / 443.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.308, allocations: 4 kB / 443.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.0003579/0.3084, allocations: 349.7 kB / 444.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.3086, allocations: 91.44 kB / 444.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006147/0.3092, allocations: 273.7 kB / 444.6 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.3092, allocations: 4 kB / 444.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3092, allocations: 3.938 kB / 444.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3092, allocations: 7.984 kB / 444.6 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005346/0.3097, allocations: 429.9 kB / 445 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3097, allocations: 0 / 445 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.828e-05/0.3098, allocations: 15.92 kB / 445 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3098, allocations: 0 / 445 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.3098, allocations: 3.984 kB / 445 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3098, allocations: 0 / 445 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3098, allocations: 4 kB / 445 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005134/0.3104, allocations: 323.3 kB / 445.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003114/0.3107, allocations: 159.2 kB / 445.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.782e-05/0.3107, allocations: 3.984 kB / 445.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.3109, allocations: 8 kB / 445.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.544e-05/0.311, allocations: 7.984 kB / 445.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.311, allocations: 0 / 445.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001294/0.3123, allocations: 1.013 MB / 446.5 MB, free: 7.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3123, allocations: 3.938 kB / 446.5 MB, free: 7.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003371/0.3126, allocations: 60 kB / 446.6 MB, free: 7.59 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.0009462/0.3136, allocations: 0.8681 MB / 447.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004046/0.314, allocations: 128 kB / 447.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.314, allocations: 8.062 kB / 447.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.3141, allocations: 47.95 kB / 447.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006019/0.3147, allocations: 96.22 kB / 447.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/0.3269, allocations: 8.788 MB / 456.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.3273, allocations: 404.1 kB / 456.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006759/0.328, allocations: 470.3 kB / 457.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00034/0.3283, allocations: 247.3 kB / 457.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3283, allocations: 0 / 457.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06163/0.39, allocations: 16.9 MB / 474.5 MB, free: 11.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.07, allocations: 12.03 kB / 474.5 MB, free: 11.73 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 16.244709754013456]