Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 47.92 kB / 370.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2859, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003577/0.2895, allocations: 1.927 MB / 424.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.2914, allocations: 1.242 MB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.572e-05/0.2914, allocations: 0 / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.2925, allocations: 0.5073 MB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002362/0.2928, allocations: 195.4 kB / 426.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004528/0.2932, allocations: 175.4 kB / 426.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.2936, allocations: 226.2 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.809e-05/0.2937, allocations: 13.81 kB / 426.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.2939, allocations: 123.5 kB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003325/0.2942, allocations: 235.4 kB / 427.2 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.464e-05/0.2942, allocations: 8 kB / 427.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.2944, allocations: 59.91 kB / 427.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002226/0.2946, allocations: 263.3 kB / 427.6 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002566/0.2948, allocations: 281.9 kB / 427.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009028/0.2957, allocations: 0.7772 MB / 428.6 MB, free: 8.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2957, allocations: 4 kB / 428.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2957, allocations: 0 / 428.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.789e-06/0.2958, allocations: 0 / 428.6 MB, free: 8.543 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.002658/0.2984, allocations: 1.141 MB / 429.8 MB, free: 7.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.2985, allocations: 8.031 kB / 429.8 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.888e-05/0.2985, allocations: 34.75 kB / 429.8 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002007/0.2987, allocations: 92.36 kB / 429.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.2998, allocations: 0.6993 MB / 430.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.2998, allocations: 384 / 430.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.2998, allocations: 8.312 kB / 430.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.3001, allocations: 121.7 kB / 430.7 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.3001, allocations: 3.938 kB / 430.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.3002, allocations: 0 / 430.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.3002, allocations: 0 / 430.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003463/0.3005, allocations: 147.8 kB / 430.9 MB, free: 6.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.3017, allocations: 0.7937 MB / 431.7 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.3019, allocations: 82.62 kB / 431.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.3021, allocations: 80.78 kB / 431.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.3021, allocations: 0 / 431.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.3021, allocations: 30.56 kB / 431.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 9.91e-07/0.3021, allocations: 0 / 431.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007992/0.3029, allocations: 336.9 kB / 432.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.303, allocations: 55.41 kB / 432.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/0.3048, allocations: 1.405 MB / 433.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.3048, allocations: 25.7 kB / 433.7 MB, free: 3.301 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003491/0.3051, allocations: 384.4 kB / 434 MB, free: 2.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.878e-05/0.3052, allocations: 11.91 kB / 434 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.775e-05/0.3052, allocations: 21.72 kB / 434.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3054, allocations: 313.9 kB / 434.4 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.3056, allocations: 67.95 kB / 434.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.3058, allocations: 86.52 kB / 434.5 MB, free: 2.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003456/0.3061, allocations: 162.4 kB / 434.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3061, allocations: 0 / 434.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005875/0.3067, allocations: 265 kB / 434.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.3067, allocations: 8 kB / 435 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3067, allocations: 96 / 435 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.3067, allocations: 4 kB / 435 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.3069, allocations: 23.97 kB / 435 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/0.3069, allocations: 0 / 435 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.3071, allocations: 4 kB / 435 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.3071, allocations: 7.984 kB / 435 MB, free: 1.93 MB / 334.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.0003797/0.3075, allocations: 341.6 kB / 435.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.3077, allocations: 99.38 kB / 435.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006088/0.3083, allocations: 273.7 kB / 435.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3083, allocations: 48 / 435.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.3083, allocations: 7.922 kB / 435.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3083, allocations: 4 kB / 435.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005818/0.3089, allocations: 497.7 kB / 436.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3089, allocations: 4 kB / 436.2 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/0.309, allocations: 11.97 kB / 436.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.309, allocations: 4 kB / 436.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.309, allocations: 3.938 kB / 436.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.309, allocations: 0 / 436.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.309, allocations: 0 / 436.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005382/0.3096, allocations: 327.2 kB / 436.5 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003772/0.3099, allocations: 155.3 kB / 436.7 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.783e-05/0.31, allocations: 4 kB / 436.7 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001907/0.3102, allocations: 7.984 kB / 436.7 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.3102, allocations: 4 kB / 436.7 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.3103, allocations: 11.98 kB / 436.7 MB, free: 136 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001324/0.3116, allocations: 1.013 MB / 437.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3116, allocations: 0 / 437.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003438/0.3119, allocations: 64 kB / 437.8 MB, free: 15.05 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.0009215/0.3129, allocations: 0.868 MB / 438.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003888/0.3132, allocations: 127.9 kB / 438.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3132, allocations: 0 / 438.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.3134, allocations: 51.89 kB / 438.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005922/0.314, allocations: 100.3 kB / 438.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.326, allocations: 8.799 MB / 447.7 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007226/0.3267, allocations: 1 MB / 448.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007038/0.3274, allocations: 474.3 kB / 449.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003621/0.3278, allocations: 247.4 kB / 449.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3278, allocations: 0 / 449.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05402/0.3818, allocations: 16.32 MB / 465.8 MB, free: 3.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.13, allocations: 3.859 kB / 465.8 MB, free: 3.062 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 15.92179675004445]