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.001636/0.001636, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001881/0.001881, allocations: 214.1 kB / 24.48 MB, free: 3.84 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.46/1.46, allocations: 230.6 MB / 258.2 MB, free: 7.82 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.001604/0.001604, allocations: 40.03 kB / 378.9 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2324, allocations: 53.38 MB / 432.3 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00338/0.2358, allocations: 1.855 MB / 434.2 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.2377, allocations: 1.143 MB / 435.3 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.469e-05/0.2378, allocations: 0 / 435.3 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.2389, allocations: 498.5 kB / 435.8 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000246/0.2391, allocations: 199.3 kB / 436 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004407/0.2396, allocations: 159.4 kB / 436.2 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003313/0.2399, allocations: 223.1 kB / 436.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.148e-05/0.24, allocations: 9.812 kB / 436.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002477/0.2402, allocations: 131.5 kB / 436.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.2405, allocations: 231.4 kB / 436.7 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.2405, allocations: 4 kB / 436.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.2407, allocations: 67.89 kB / 436.8 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002322/0.2409, allocations: 255.3 kB / 437.1 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002151/0.2411, allocations: 198.4 kB / 437.2 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009487/0.2421, allocations: 0.7856 MB / 438 MB, free: 1.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.2421, allocations: 3.984 kB / 438 MB, free: 1.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2421, allocations: 3.938 kB / 438 MB, free: 1.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.2421, allocations: 0 / 438 MB, free: 1.156 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.002866/0.245, allocations: 1.137 MB / 439.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.245, allocations: 12.03 kB / 439.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.2452, allocations: 96.27 kB / 439.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.2464, allocations: 0.6953 MB / 440 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.2464, allocations: 384 / 440 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.2464, allocations: 8.375 kB / 440 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.2467, allocations: 113.9 kB / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.2467, allocations: 0 / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.2468, allocations: 4 kB / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.2468, allocations: 0 / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003599/0.2471, allocations: 147.9 kB / 440.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.2482, allocations: 0.6887 MB / 440.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.2484, allocations: 86.39 kB / 441 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.2486, allocations: 72.91 kB / 441.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.2486, allocations: 0 / 441.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.2487, allocations: 34.56 kB / 441.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.2487, allocations: 0 / 441.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008403/0.2495, allocations: 337.1 kB / 441.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.2496, allocations: 59.28 kB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.2514, allocations: 1.405 MB / 442.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.2514, allocations: 29.7 kB / 442.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003653/0.2518, allocations: 384.4 kB / 443.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.2518, allocations: 11.88 kB / 443.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.79e-05/0.2519, allocations: 21.72 kB / 443.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.252, allocations: 306 kB / 443.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.2522, allocations: 75.88 kB / 443.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.2524, allocations: 90.55 kB / 443.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003628/0.2528, allocations: 158.4 kB / 444 MB, free: 11.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.2528, allocations: 0 / 444 MB, free: 11.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006822/0.2535, allocations: 280.8 kB / 444.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2535, allocations: 4 kB / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.2535, allocations: 4 kB / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.2535, allocations: 0 / 444.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.2537, allocations: 11.98 kB / 444.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.2537, allocations: 4 kB / 444.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.2539, allocations: 7.984 kB / 444.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.2539, allocations: 8.094 kB / 444.3 MB, free: 10.7 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.000424/0.2543, allocations: 337.6 kB / 444.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.2545, allocations: 91.42 kB / 444.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006462/0.2552, allocations: 281.4 kB / 445 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.2552, allocations: 0 / 445 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2552, allocations: 4 kB / 445 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2552, allocations: 0 / 445 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005745/0.2558, allocations: 410 kB / 445.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.2558, allocations: 3.938 kB / 445.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.936e-05/0.2559, allocations: 11.98 kB / 445.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2559, allocations: 0 / 445.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.2559, allocations: 144 / 445.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2559, allocations: 0 / 445.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2559, allocations: 4 kB / 445.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005469/0.2564, allocations: 323.3 kB / 445.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004417/0.2569, allocations: 163.3 kB / 445.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-05/0.2569, allocations: 0 / 445.9 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.2571, allocations: 4 kB / 445.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/0.2572, allocations: 11.92 kB / 445.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.2572, allocations: 4 kB / 445.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001363/0.2585, allocations: 1.009 MB / 446.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2585, allocations: 0 / 446.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000339/0.2589, allocations: 71.94 kB / 447 MB, free: 7.926 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.0001937/0.2591, allocations: 111.2 kB / 447.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003935/0.2595, allocations: 127.8 kB / 447.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2595, allocations: 0 / 447.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.2596, allocations: 52.16 kB / 447.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005801/0.2602, allocations: 103.3 kB / 447.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.2624, allocations: 1.44 MB / 448.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/0.2629, allocations: 404.1 kB / 449.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.263, allocations: 35.44 kB / 449.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.263, allocations: 0 / 449.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of Templates: time 0.01655/0.2795, allocations: 9.449 MB / 458.7 MB, free: 12.17 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/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: 7.776708810124546]