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.002119/0.002119, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002629/0.002629, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.487/1.487, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 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 1.383e-06/1.383e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.611e-05/2.749e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003596/0.003624, allocations: 1.876 MB / 274.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.005664, allocations: 1.125 MB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.00577, allocations: 7.938 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.006985, allocations: 0.4905 MB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003025/0.007288, allocations: 195.3 kB / 276 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004735/0.007761, allocations: 163.2 kB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003659/0.008127, allocations: 227 kB / 276.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.764e-05/0.008215, allocations: 13.8 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003019/0.008517, allocations: 159.6 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.00881, allocations: 211.6 kB / 276.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.04e-05/0.00884, allocations: 8 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.008991, allocations: 63.89 kB / 276.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002549/0.009246, allocations: 263.3 kB / 277.1 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.009424, allocations: 135.5 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008974/0.01032, allocations: 0.7435 MB / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.01033, allocations: 0 / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.01033, allocations: 0 / 277.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.086e-06/0.01033, allocations: 0 / 277.9 MB, free: 12.18 MB / 266.7 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.002715/0.01305, allocations: 1.126 MB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.01309, allocations: 12.03 kB / 279.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002337/0.01332, allocations: 100.3 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.01453, allocations: 0.7141 MB / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.01454, allocations: 4.312 kB / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.01456, allocations: 4.375 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.01486, allocations: 114.1 kB / 280 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.01487, allocations: 4.172 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.01488, allocations: 384 / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.01489, allocations: 11.94 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003824/0.01527, allocations: 135.9 kB / 280.2 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.0166, allocations: 0.755 MB / 280.9 MB, free: 9.102 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005036/0.01711, allocations: 206.4 kB / 281.1 MB, free: 8.891 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.0173, allocations: 76.86 kB / 281.2 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.01732, allocations: 0 / 281.2 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.01736, allocations: 38.5 kB / 281.2 MB, free: 8.766 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 7.82e-07/0.01736, allocations: 4 kB / 281.2 MB, free: 8.762 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0008868/0.01824, allocations: 333 kB / 281.6 MB, free: 8.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.01829, allocations: 55.41 kB / 281.6 MB, free: 8.363 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.02024, allocations: 1.405 MB / 283 MB, free: 6.938 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.02027, allocations: 25.7 kB / 283 MB, free: 6.906 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004025/0.02067, allocations: 392.4 kB / 283.4 MB, free: 6.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.0207, allocations: 11.89 kB / 283.4 MB, free: 6.508 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.256e-05/0.02078, allocations: 29.64 kB / 283.5 MB, free: 6.473 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.02094, allocations: 310 kB / 283.8 MB, free: 6.164 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.02115, allocations: 71.94 kB / 283.8 MB, free: 6.094 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.02134, allocations: 67.95 kB / 283.9 MB, free: 6.027 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003804/0.02172, allocations: 148.7 kB / 284 MB, free: 5.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.02172, allocations: 0 / 284 MB, free: 5.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000654/0.02237, allocations: 265 kB / 284.3 MB, free: 5.613 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.0224, allocations: 18.73 kB / 284.3 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.0224, allocations: 0 / 284.3 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.02243, allocations: 0 / 284.3 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.02262, allocations: 20.25 kB / 284.3 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.02263, allocations: 4 kB / 284.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.02282, allocations: 7.953 kB / 284.4 MB, free: 5.566 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.02284, allocations: 11.92 kB / 284.4 MB, free: 5.555 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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.0004181/0.02326, allocations: 337.7 kB / 284.7 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/0.02347, allocations: 95.36 kB / 284.8 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006849/0.02416, allocations: 281.4 kB / 285.1 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.02417, allocations: 4 kB / 285.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.02417, allocations: 0 / 285.1 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.02418, allocations: 4 kB / 285.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005441/0.02472, allocations: 410 kB / 285.5 MB, free: 4.398 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.02472, allocations: 0 / 285.5 MB, free: 4.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.496e-05/0.02481, allocations: 11.98 kB / 285.5 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.02481, allocations: 0 / 285.5 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.02482, allocations: 3.938 kB / 285.5 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.02483, allocations: 3.938 kB / 285.5 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.194e-05/0.02484, allocations: 4 kB / 285.5 MB, free: 4.375 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005823/0.02542, allocations: 319.4 kB / 285.8 MB, free: 4.047 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/0.02576, allocations: 163.3 kB / 286 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.622e-05/0.02584, allocations: 3.938 kB / 286 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.02603, allocations: 4 kB / 286 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.649e-05/0.02609, allocations: 7.984 kB / 286 MB, free: 3.871 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.0261, allocations: 0 / 286 MB, free: 3.871 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001503/0.0276, allocations: 1.013 MB / 287 MB, free: 2.848 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0276, allocations: 0 / 287 MB, free: 2.848 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003611/0.02796, allocations: 67.94 kB / 287.1 MB, free: 2.781 MB / 266.7 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.0002322/0.02819, allocations: 111.2 kB / 287.2 MB, free: 2.664 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004059/0.0286, allocations: 131.9 kB / 287.3 MB, free: 2.535 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.0286, allocations: 4 kB / 287.3 MB, free: 2.531 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001856/0.02879, allocations: 51.95 kB / 287.4 MB, free: 2.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.0294, allocations: 107.6 kB / 287.5 MB, free: 2.375 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.03165, allocations: 1.4 MB / 288.9 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.0322, allocations: 400.1 kB / 289.3 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0007436/0.03294, allocations: 470.3 kB / 289.7 MB, free: 64 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.03307, allocations: 48.48 kB / 289.8 MB, free: 16 kB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.03307, allocations: 0 / 289.8 MB, free: 16 kB / 266.7 MB Notification: Performance of Templates: time 0.1155/0.1486, allocations: 7.967 MB / 297.7 MB, free: 26.19 MB / 266.7 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.5812245439738035]