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.001285/0.001285, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.0014/0.0014, allocations: 211.1 kB / 23.73 MB, free: 4.523 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.444/1.444, allocations: 230.6 MB / 257.5 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 43.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2705, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003595/0.2741, allocations: 1.866 MB / 432.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002065/0.2762, allocations: 1.134 MB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.2763, allocations: 0 / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.2775, allocations: 498.6 kB / 434.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.2778, allocations: 191.4 kB / 434.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005098/0.2783, allocations: 163.4 kB / 434.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004065/0.2787, allocations: 223.1 kB / 435.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.2788, allocations: 13.73 kB / 435.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/0.2791, allocations: 131.6 kB / 435.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003338/0.2794, allocations: 235.4 kB / 435.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.409e-05/0.2794, allocations: 4 kB / 435.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.2796, allocations: 59.97 kB / 435.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002339/0.2798, allocations: 267.2 kB / 435.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002255/0.2801, allocations: 202.4 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009958/0.281, allocations: 0.7856 MB / 436.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2811, allocations: 0 / 436.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2811, allocations: 0 / 436.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.2811, allocations: 0 / 436.8 MB, free: 0.8789 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.003328/0.2844, allocations: 1.137 MB / 437.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.2844, allocations: 12.03 kB / 437.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.2e-05/0.2845, allocations: 30.75 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002054/0.2847, allocations: 96.31 kB / 438.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.2859, allocations: 0.6993 MB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.286, allocations: 384 / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.286, allocations: 4.375 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003184/0.2863, allocations: 121.7 kB / 438.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.2863, allocations: 4 kB / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.2863, allocations: 4 kB / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.2863, allocations: 0 / 438.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003915/0.2867, allocations: 147.8 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.288, allocations: 0.7158 MB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.2882, allocations: 82.53 kB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.2884, allocations: 72.89 kB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.2884, allocations: 7.938 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.2884, allocations: 34.56 kB / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 3.457e-06/0.2884, allocations: 3.984 kB / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0009176/0.2894, allocations: 321 kB / 440.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.2894, allocations: 55.41 kB / 440.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001907/0.2913, allocations: 1.405 MB / 441.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.2913, allocations: 25.7 kB / 441.8 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003799/0.2917, allocations: 392.4 kB / 442.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.244e-05/0.2918, allocations: 3.953 kB / 442.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.771e-05/0.2918, allocations: 29.7 kB / 442.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.292, allocations: 309.9 kB / 442.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/0.2922, allocations: 71.94 kB / 442.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.2924, allocations: 86.47 kB / 442.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.2927, allocations: 150.5 kB / 442.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2927, allocations: 4 kB / 442.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007054/0.2934, allocations: 268.9 kB / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.2935, allocations: 8 kB / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2935, allocations: 0 / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.2935, allocations: 0 / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.2937, allocations: 19.92 kB / 443.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.2937, allocations: 3.984 kB / 443.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.2939, allocations: 16.03 kB / 443.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.294, allocations: 4 kB / 443.1 MB, free: 10.34 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.0004504/0.2944, allocations: 341.6 kB / 443.4 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/0.2946, allocations: 91.44 kB / 443.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006694/0.2953, allocations: 277.7 kB / 443.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.2953, allocations: 0 / 443.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.2953, allocations: 3.984 kB / 443.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.2953, allocations: 4.031 kB / 443.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005689/0.2959, allocations: 429.9 kB / 444.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.2959, allocations: 7.922 kB / 444.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.973e-05/0.296, allocations: 15.98 kB / 444.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.296, allocations: 0 / 444.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.296, allocations: 8 kB / 444.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.296, allocations: 0 / 444.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.296, allocations: 0 / 444.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005564/0.2965, allocations: 319.3 kB / 444.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004259/0.297, allocations: 159.3 kB / 444.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.729e-05/0.297, allocations: 0 / 444.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.2972, allocations: 8 kB / 444.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/0.2973, allocations: 3.984 kB / 444.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.2973, allocations: 0 / 444.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001396/0.2987, allocations: 1.021 MB / 445.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2987, allocations: 0 / 445.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003755/0.2991, allocations: 64 kB / 445.8 MB, free: 7.539 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.001055/0.3001, allocations: 0.8641 MB / 446.7 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000424/0.3005, allocations: 131.8 kB / 446.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3005, allocations: 0 / 446.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001645/0.3007, allocations: 51.95 kB / 446.8 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006566/0.3014, allocations: 111.3 kB / 447 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.3135, allocations: 8.788 MB / 455.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.314, allocations: 400.1 kB / 456.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007142/0.3147, allocations: 470.3 kB / 456.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003531/0.3151, allocations: 255.3 kB / 456.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3151, allocations: 0 / 456.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05008/0.3651, allocations: 17.36 MB / 474.2 MB, free: 11.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.52, allocations: 7.922 kB / 474.2 MB, free: 11.14 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.26427676397725]