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.001709/0.001709, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 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.002101/0.002101, allocations: 205.5 kB / 24.51 MB, free: 3.945 MB / 14.72 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 1.456/1.456, allocations: 230.5 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002149/0.002149, allocations: 63.89 kB / 378.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3224, allocations: 53.4 MB / 431.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003428/0.3259, allocations: 1.857 MB / 433.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.3278, allocations: 1.129 MB / 434.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.426e-05/0.3279, allocations: 0 / 434.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.3289, allocations: 0.4907 MB / 435.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.3292, allocations: 195.4 kB / 435.6 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004519/0.3296, allocations: 163.4 kB / 435.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.3299, allocations: 215.2 kB / 435.9 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.522e-05/0.33, allocations: 25.73 kB / 436 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.3302, allocations: 131.4 kB / 436.1 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.3305, allocations: 235.4 kB / 436.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.3306, allocations: 8 kB / 436.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.3307, allocations: 59.91 kB / 436.4 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.3309, allocations: 259.3 kB / 436.6 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.3311, allocations: 202.4 kB / 436.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000815/0.332, allocations: 0.7818 MB / 437.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.332, allocations: 4 kB / 437.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.332, allocations: 0 / 437.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.522e-05/0.332, allocations: 4 kB / 437.6 MB, free: 0.7422 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.002619/0.3346, allocations: 1.133 MB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.3346, allocations: 8.031 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.754e-05/0.3347, allocations: 8.125 kB / 438.8 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.629e-05/0.3347, allocations: 30.75 kB / 438.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001993/0.3349, allocations: 100.3 kB / 438.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009726/0.3359, allocations: 0.6954 MB / 439.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.3359, allocations: 4.359 kB / 439.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.3359, allocations: 4.375 kB / 439.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002868/0.3362, allocations: 121.5 kB / 439.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3362, allocations: 0 / 439.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.3362, allocations: 0 / 439.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.3362, allocations: 4 kB / 439.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003474/0.3366, allocations: 143.8 kB / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009561/0.3375, allocations: 0.7198 MB / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.3377, allocations: 78.52 kB / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.3379, allocations: 80.89 kB / 440.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.3379, allocations: 0 / 440.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.338, allocations: 34.56 kB / 440.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.02e-07/0.338, allocations: 0 / 440.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007966/0.3388, allocations: 328.9 kB / 441.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.3388, allocations: 51.41 kB / 441.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001666/0.3405, allocations: 1.409 MB / 442.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.3405, allocations: 25.7 kB / 442.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003406/0.3408, allocations: 392.4 kB / 443 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/0.3409, allocations: 7.953 kB / 443 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.3409, allocations: 25.64 kB / 443 MB, free: 11.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.341, allocations: 313.9 kB / 443.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.3412, allocations: 59.95 kB / 443.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.3414, allocations: 90.52 kB / 443.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.3417, allocations: 162.4 kB / 443.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3417, allocations: 0 / 443.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005706/0.3423, allocations: 272.9 kB / 443.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.3423, allocations: 7.938 kB / 443.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3423, allocations: 4 kB / 443.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.3424, allocations: 0 / 443.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.3425, allocations: 16.08 kB / 443.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3425, allocations: 4 kB / 443.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.3428, allocations: 7.984 kB / 443.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.3428, allocations: 4 kB / 443.9 MB, free: 10.21 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.0003404/0.3431, allocations: 345.6 kB / 444.3 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.3433, allocations: 87.44 kB / 444.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006062/0.3439, allocations: 277.7 kB / 444.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3439, allocations: 0 / 444.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3439, allocations: 4 kB / 444.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.3439, allocations: 0 / 444.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005021/0.3444, allocations: 433.9 kB / 445 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3444, allocations: 0 / 445 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.989e-05/0.3445, allocations: 11.98 kB / 445 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3445, allocations: 4 kB / 445.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.3445, allocations: 3.984 kB / 445.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.3445, allocations: 7.984 kB / 445.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3445, allocations: 0 / 445.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/0.345, allocations: 327.2 kB / 445.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002958/0.3453, allocations: 151.3 kB / 445.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.893e-05/0.3454, allocations: 0 / 445.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.3456, allocations: 15.98 kB / 445.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.3456, allocations: 11.98 kB / 445.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.754e-06/0.3456, allocations: 0 / 445.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001251/0.3469, allocations: 1.013 MB / 446.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3469, allocations: 0 / 446.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.3472, allocations: 64 kB / 446.6 MB, free: 7.398 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.0009088/0.3481, allocations: 0.8718 MB / 447.5 MB, free: 6.496 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003762/0.3485, allocations: 123.9 kB / 447.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3485, allocations: 0 / 447.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.3487, allocations: 55.89 kB / 447.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006435/0.3493, allocations: 106.9 kB / 447.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.3607, allocations: 8.787 MB / 456.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004467/0.3612, allocations: 404.1 kB / 457 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006798/0.3619, allocations: 470.1 kB / 457.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.3622, allocations: 247.3 kB / 457.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3622, allocations: 0 / 457.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04265/0.4049, allocations: 16.89 MB / 474.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/12.91, allocations: 16 kB / 474.6 MB, free: 11.43 MB / 382.1 MB " [Timeout remaining time 647] (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/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_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: 16.193623292958364]