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.001397/0.001397, allocations: 115.8 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.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.00165/0.00165, allocations: 216 kB / 23.75 MB, free: 4.668 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.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 8.008 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: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 43.94 kB / 378.2 MB, free: 2.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.302, allocations: 53.37 MB / 431.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003215/0.3052, allocations: 1.925 MB / 433.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.307, allocations: 1.273 MB / 434.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.82e-05/0.3071, allocations: 0 / 434.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001023/0.3081, allocations: 0.5078 MB / 435.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002275/0.3084, allocations: 195.4 kB / 435.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.3088, allocations: 171.4 kB / 435.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003295/0.3091, allocations: 225.3 kB / 435.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.566e-05/0.3092, allocations: 9.812 kB / 435.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002326/0.3094, allocations: 131.5 kB / 436 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002935/0.3097, allocations: 235.4 kB / 436.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/0.3097, allocations: 11.88 kB / 436.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.3099, allocations: 59.97 kB / 436.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002143/0.3101, allocations: 263.3 kB / 436.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000241/0.3103, allocations: 277.9 kB / 436.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008342/0.3112, allocations: 0.7814 MB / 437.6 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3112, allocations: 0 / 437.6 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3112, allocations: 4 kB / 437.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.3112, allocations: 0 / 437.6 MB, free: 0.8906 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.002689/0.3139, allocations: 1.129 MB / 438.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.3139, allocations: 8.031 kB / 438.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.3141, allocations: 96.31 kB / 438.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.3152, allocations: 0.7031 MB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.3152, allocations: 4.375 kB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.3152, allocations: 384 / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002941/0.3155, allocations: 129.8 kB / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.485e-06/0.3155, allocations: 0 / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.3155, allocations: 0 / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3155, allocations: 0 / 439.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003658/0.3159, allocations: 143.9 kB / 439.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.317, allocations: 0.7782 MB / 440.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002191/0.3172, allocations: 94.45 kB / 440.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.3174, allocations: 68.91 kB / 440.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.3174, allocations: 3.984 kB / 440.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.3175, allocations: 34.56 kB / 440.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3175, allocations: 0 / 440.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007912/0.3182, allocations: 325 kB / 441.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.3183, allocations: 55.41 kB / 441.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/0.3201, allocations: 1.405 MB / 442.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.3201, allocations: 25.7 kB / 442.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003561/0.3204, allocations: 388.4 kB / 443 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.3205, allocations: 11.88 kB / 443 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.383e-05/0.3205, allocations: 17.72 kB / 443 MB, free: 11.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3207, allocations: 317.9 kB / 443.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.3208, allocations: 67.94 kB / 443.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.321, allocations: 86.7 kB / 443.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003497/0.3214, allocations: 154.4 kB / 443.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3214, allocations: 4 kB / 443.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005628/0.3219, allocations: 265 kB / 443.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.322, allocations: 8 kB / 443.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.322, allocations: 3.938 kB / 443.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.322, allocations: 3.984 kB / 443.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.3222, allocations: 24.08 kB / 444 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.3222, allocations: 7.875 kB / 444 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.3224, allocations: 15.94 kB / 444 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.3224, allocations: 4 kB / 444 MB, free: 10.33 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.0003512/0.3227, allocations: 341.6 kB / 444.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.3229, allocations: 91.42 kB / 444.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006186/0.3235, allocations: 273.4 kB / 444.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.3235, allocations: 4 kB / 444.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3235, allocations: 0 / 444.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3235, allocations: 0 / 444.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000567/0.3241, allocations: 493.8 kB / 445.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3241, allocations: 4 kB / 445.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.244e-05/0.3242, allocations: 11.98 kB / 445.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3242, allocations: 0 / 445.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.3242, allocations: 7.984 kB / 445.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3242, allocations: 0 / 445.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3242, allocations: 0 / 445.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005097/0.3247, allocations: 319.3 kB / 445.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003793/0.3251, allocations: 155.3 kB / 445.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.669e-05/0.3252, allocations: 96 / 445.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.3254, allocations: 7.984 kB / 445.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.691e-05/0.3254, allocations: 15.97 kB / 445.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.3254, allocations: 0 / 445.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001299/0.3267, allocations: 1.017 MB / 446.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3267, allocations: 0 / 446.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003428/0.3271, allocations: 63.94 kB / 446.7 MB, free: 7.473 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.000201/0.3273, allocations: 111.2 kB / 446.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003936/0.3277, allocations: 123.9 kB / 447 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3277, allocations: 0 / 447 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.3278, allocations: 60.08 kB / 447 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005825/0.3284, allocations: 106 kB / 447.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.3303, allocations: 1.38 MB / 448.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006842/0.331, allocations: 1.001 MB / 449.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000657/0.3317, allocations: 478.1 kB / 450 MB, free: 4.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.3318, allocations: 39.42 kB / 450 MB, free: 4.121 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3318, allocations: 3.938 kB / 450 MB, free: 4.117 MB / 350.1 MB Notification: Performance of Templates: time 0.01676/0.3485, allocations: 7.505 MB / 457.5 MB, free: 12.66 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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: 4.880958304973319]