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.001318/0.001318, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001515/0.001515, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.551/1.551, allocations: 230.3 MB / 257.9 MB, free: 8.242 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: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 59.89 kB / 378.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3066, allocations: 53.37 MB / 432.1 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003899/0.3105, allocations: 1.92 MB / 434 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.3127, allocations: 1.277 MB / 435.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.3129, allocations: 0 / 435.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.3141, allocations: 0.5043 MB / 435.8 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003006/0.3144, allocations: 203.4 kB / 436 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.3149, allocations: 171.3 kB / 436.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003747/0.3153, allocations: 219.1 kB / 436.4 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.3154, allocations: 13.8 kB / 436.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002812/0.3157, allocations: 131.5 kB / 436.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003182/0.316, allocations: 231.4 kB / 436.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.206e-05/0.316, allocations: 7.938 kB / 436.8 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001715/0.3162, allocations: 63.89 kB / 436.8 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002541/0.3164, allocations: 259.3 kB / 437.1 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002797/0.3167, allocations: 285.9 kB / 437.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009317/0.3176, allocations: 0.7736 MB / 438.1 MB, free: 1.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.864e-06/0.3177, allocations: 4 kB / 438.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3177, allocations: 0 / 438.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.3177, allocations: 0 / 438.1 MB, free: 1.039 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.003031/0.3207, allocations: 1.138 MB / 439.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.3207, allocations: 8.031 kB / 439.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.321, allocations: 92.33 kB / 439.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/0.3222, allocations: 0.707 MB / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.3222, allocations: 4.375 kB / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.3222, allocations: 384 / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003332/0.3226, allocations: 125.5 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3226, allocations: 0 / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.3226, allocations: 0 / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3226, allocations: 0 / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.323, allocations: 147.9 kB / 440.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.3242, allocations: 0.7782 MB / 441.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.3244, allocations: 90.45 kB / 441.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.3246, allocations: 72.89 kB / 441.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.3246, allocations: 0 / 441.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.3247, allocations: 38.56 kB / 441.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.312e-06/0.3247, allocations: 0 / 441.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008903/0.3256, allocations: 325.1 kB / 441.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.3256, allocations: 51.41 kB / 441.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.3274, allocations: 1.409 MB / 443.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.3275, allocations: 25.7 kB / 443.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003625/0.3278, allocations: 392.4 kB / 443.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.328e-05/0.3279, allocations: 11.84 kB / 443.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.205e-05/0.3279, allocations: 21.7 kB / 443.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3281, allocations: 313.9 kB / 443.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.3283, allocations: 63.95 kB / 443.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.3285, allocations: 86.5 kB / 444 MB, free: 10.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.3289, allocations: 158.4 kB / 444.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3289, allocations: 4 kB / 444.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007044/0.3296, allocations: 272.9 kB / 444.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.3296, allocations: 8 kB / 444.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.3296, allocations: 0 / 444.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3296, allocations: 0 / 444.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.3298, allocations: 15.98 kB / 444.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.3298, allocations: 3.938 kB / 444.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.3301, allocations: 11.94 kB / 444.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.136e-05/0.3301, allocations: 8 kB / 444.5 MB, free: 10.48 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.0004132/0.3305, allocations: 341.7 kB / 444.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/0.3307, allocations: 91.42 kB / 444.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006817/0.3314, allocations: 273.4 kB / 445.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.966e-06/0.3314, allocations: 8 kB / 445.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3314, allocations: 0 / 445.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3314, allocations: 0 / 445.2 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006001/0.332, allocations: 497.7 kB / 445.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.332, allocations: 0 / 445.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.023e-05/0.3321, allocations: 15.98 kB / 445.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3321, allocations: 0 / 445.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.3321, allocations: 4 kB / 445.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3321, allocations: 0 / 445.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3321, allocations: 0 / 445.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005562/0.3327, allocations: 331.4 kB / 446 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004074/0.3331, allocations: 155.4 kB / 446.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.947e-05/0.3331, allocations: 0 / 446.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.3333, allocations: 4 kB / 446.1 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.345e-05/0.3334, allocations: 7.984 kB / 446.2 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.3334, allocations: 4 kB / 446.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001375/0.3348, allocations: 1.013 MB / 447.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3348, allocations: 0 / 447.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003625/0.3351, allocations: 67.94 kB / 447.2 MB, free: 7.613 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.000223/0.3354, allocations: 103.2 kB / 447.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004468/0.3358, allocations: 139.8 kB / 447.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3358, allocations: 0 / 447.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.336, allocations: 43.97 kB / 447.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006378/0.3366, allocations: 114 kB / 447.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.3387, allocations: 1.384 MB / 449 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006848/0.3394, allocations: 0.9928 MB / 450 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007324/0.3402, allocations: 478.2 kB / 450.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.3403, allocations: 39.44 kB / 450.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3403, allocations: 0 / 450.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of Templates: time 0.01589/0.3562, allocations: 7.502 MB / 458 MB, free: 12.8 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/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: 4.908882356248796]