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.001322/0.001322, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001439/0.001439, allocations: 215 kB / 21.45 MB, free: 1.617 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.481/1.481, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.001515/0.001515, allocations: 51.92 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1228, allocations: 53.32 MB / 427 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003883/0.1267, allocations: 1.918 MB / 428.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.1288, allocations: 1.257 MB / 430.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.129, allocations: 4 kB / 430.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.1303, allocations: 0.5102 MB / 430.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.1306, allocations: 191.4 kB / 430.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005047/0.1311, allocations: 171.3 kB / 431 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004666/0.1316, allocations: 223.1 kB / 431.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.1317, allocations: 21.67 kB / 431.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003415/0.132, allocations: 123.6 kB / 431.4 MB, free: 404 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003811/0.1324, allocations: 235.4 kB / 431.6 MB, free: 168 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.284e-05/0.1324, allocations: 4 kB / 431.6 MB, free: 164 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.1326, allocations: 67.97 kB / 431.7 MB, free: 96 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.243/0.3756, allocations: 253.3 kB / 432 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003193/0.376, allocations: 276.6 kB / 432.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009946/0.377, allocations: 0.7718 MB / 433 MB, free: 7.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.377, allocations: 0.9062 kB / 433 MB, free: 7.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.377, allocations: 0 / 433 MB, free: 7.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.377, allocations: 1.188 kB / 433 MB, free: 7.68 MB / 350.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.002446/0.3794, allocations: 1.212 MB / 434.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3795, allocations: 10.41 kB / 434.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.502e-05/0.3795, allocations: 6.344 kB / 434.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.58e-05/0.3795, allocations: 30.75 kB / 434.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.3797, allocations: 96.91 kB / 434.3 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009379/0.3806, allocations: 0.753 MB / 435.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.3806, allocations: 5.188 kB / 435.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.3806, allocations: 2.75 kB / 435.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.3809, allocations: 123.7 kB / 435.2 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3809, allocations: 1.312 kB / 435.2 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.3809, allocations: 1.031 kB / 435.2 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3809, allocations: 0 / 435.2 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003211/0.3813, allocations: 145 kB / 435.4 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.3823, allocations: 0.8112 MB / 436.2 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.3825, allocations: 85.88 kB / 436.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.3827, allocations: 74.19 kB / 436.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.3827, allocations: 0 / 436.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.449e-05/0.3827, allocations: 36.12 kB / 436.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.3827, allocations: 1.781 kB / 436.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008141/0.3835, allocations: 332.5 kB / 436.7 MB, free: 6.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.546e-05/0.3836, allocations: 52.47 kB / 436.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001823/0.3854, allocations: 1.403 MB / 438.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.3854, allocations: 30.61 kB / 438.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.3857, allocations: 389.4 kB / 438.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.3857, allocations: 5.953 kB / 438.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.893e-05/0.3858, allocations: 20.75 kB / 438.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.648e-05/0.3858, allocations: 311.6 kB / 438.9 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/0.386, allocations: 69.67 kB / 439 MB, free: 5.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.3862, allocations: 87.52 kB / 439.1 MB, free: 5.336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003417/0.3865, allocations: 155.1 kB / 439.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3865, allocations: 0.8125 kB / 439.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005748/0.3871, allocations: 267.8 kB / 439.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3871, allocations: 5.406 kB / 439.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.3871, allocations: 1.219 kB / 439.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.3871, allocations: 4.453 kB / 439.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.3873, allocations: 20.88 kB / 439.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.3873, allocations: 1.25 kB / 439.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.3875, allocations: 23.7 kB / 439.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.3875, allocations: 2.844 kB / 439.5 MB, free: 5.18 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.0003442/0.3879, allocations: 338.1 kB / 439.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001818/0.3881, allocations: 98.64 kB / 439.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006085/0.3887, allocations: 275.6 kB / 440.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.3887, allocations: 1 kB / 440.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3887, allocations: 0 / 440.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3887, allocations: 1.891 kB / 440.2 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006609/0.3894, allocations: 0.5152 MB / 440.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.3894, allocations: 1.125 kB / 440.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.3895, allocations: 10.92 kB / 440.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3895, allocations: 1.219 kB / 440.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.3895, allocations: 0.7969 kB / 440.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3895, allocations: 2.672 kB / 440.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3895, allocations: 0 / 440.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004957/0.39, allocations: 323.6 kB / 441.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002951/0.3903, allocations: 232.2 kB / 441.3 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.042e-05/0.3903, allocations: 4.812 kB / 441.3 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.3905, allocations: 9.25 kB / 441.3 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.3906, allocations: 8.062 kB / 441.3 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.3906, allocations: 1.688 kB / 441.3 MB, free: 4.152 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001473/0.3921, allocations: 1.01 MB / 442.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3921, allocations: 1.281 kB / 442.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003803/0.3925, allocations: 68.25 kB / 442.4 MB, free: 3.812 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.0007897/0.3932, allocations: 0.8723 MB / 443.3 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004277/0.3937, allocations: 122.2 kB / 443.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3937, allocations: 0 / 443.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.3939, allocations: 57.31 kB / 443.4 MB, free: 3.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006202/0.3945, allocations: 105 kB / 443.5 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/0.4073, allocations: 8.789 MB / 452.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008399/0.4082, allocations: 0.9966 MB / 453.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000896/0.409, allocations: 474.2 kB / 453.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003994/0.4094, allocations: 248.8 kB / 454 MB, free: 14.67 MB / 366.1 MB Notification: Performance of SimCode: time 1.532e-06/0.4095, allocations: 5.312 kB / 454 MB, free: 14.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04568/0.4551, allocations: 16.21 MB / 470.3 MB, free: 4.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.753/10.21, allocations: 21.64 kB / 470.3 MB, free: 4.715 MB / 366.1 MB " [Timeout remaining time 650] (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: 13.450974853010848]