Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 72.06 kB / 21.24 MB, free: 400 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 161.4 kB / 24.49 MB, free: 3.461 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 173.4 MB / 201.1 MB, free: 12.61 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 42.78 kB / 319.4 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09169/0.09325, allocations: 52.16 MB / 371.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003201/0.09645, allocations: 1.855 MB / 373.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.09821, allocations: 1.117 MB / 374.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.661e-05/0.0983, allocations: 0 / 374.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.09938, allocations: 498.4 kB / 375 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002469/0.09962, allocations: 199.4 kB / 375.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004621/0.1001, allocations: 159.4 kB / 375.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003477/0.1004, allocations: 227.1 kB / 375.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.761e-05/0.1005, allocations: 9.812 kB / 375.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001982/0.1007, allocations: 123.5 kB / 375.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003151/0.101, allocations: 231.4 kB / 375.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.851e-05/0.1011, allocations: 8 kB / 375.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.1012, allocations: 63.89 kB / 376 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002463/0.1015, allocations: 267.2 kB / 376.3 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.1017, allocations: 198.4 kB / 376.5 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008568/0.1025, allocations: 0.7857 MB / 377.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1025, allocations: 0 / 377.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1025, allocations: 0 / 377.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1025, allocations: 0 / 377.3 MB, free: 1.656 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.002611/0.1052, allocations: 1.137 MB / 378.4 MB, free: 496 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.1052, allocations: 8.922 kB / 378.4 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.1054, allocations: 96.36 kB / 378.5 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.1064, allocations: 0.6992 MB / 379.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.1064, allocations: 384 / 379.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.1064, allocations: 4.375 kB / 379.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.1067, allocations: 125.8 kB / 379.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.1067, allocations: 0 / 379.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.1067, allocations: 0 / 379.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.1067, allocations: 0 / 379.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003694/0.1071, allocations: 143.9 kB / 379.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00099/0.1081, allocations: 0.7003 MB / 380.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.1083, allocations: 94.45 kB / 380.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.1085, allocations: 72.91 kB / 380.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.1085, allocations: 0 / 380.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.1086, allocations: 38.48 kB / 380.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.51e-07/0.1086, allocations: 0 / 380.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000833/0.1094, allocations: 332.9 kB / 380.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.1094, allocations: 51.41 kB / 380.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.1111, allocations: 1.409 MB / 382.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.1112, allocations: 25.7 kB / 382.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003504/0.1115, allocations: 388.4 kB / 382.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.1115, allocations: 7.906 kB / 382.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.724e-05/0.1116, allocations: 25.7 kB / 382.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1117, allocations: 306 kB / 382.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.1119, allocations: 67.94 kB / 382.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.1121, allocations: 82.72 kB / 383 MB, free: 11.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003765/0.1125, allocations: 162.4 kB / 383.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1125, allocations: 0 / 383.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005921/0.1131, allocations: 272.9 kB / 383.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1131, allocations: 8 kB / 383.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.1131, allocations: 96 / 383.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1131, allocations: 8.078 kB / 383.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.1133, allocations: 19.98 kB / 383.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.1133, allocations: 0 / 383.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.1135, allocations: 11.92 kB / 383.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.1135, allocations: 4 kB / 383.5 MB, free: 11.19 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.00035/0.1139, allocations: 341.6 kB / 383.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.1141, allocations: 95.38 kB / 383.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006255/0.1147, allocations: 281.4 kB / 384.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1147, allocations: 3.938 kB / 384.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1147, allocations: 0 / 384.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1147, allocations: 0 / 384.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005023/0.1152, allocations: 406 kB / 384.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.1152, allocations: 7.938 kB / 384.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.971e-05/0.1153, allocations: 11.98 kB / 384.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.1153, allocations: 0 / 384.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.1153, allocations: 11.98 kB / 384.6 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1153, allocations: 0 / 384.6 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.1153, allocations: 3.984 kB / 384.6 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005413/0.1158, allocations: 319.3 kB / 385 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003273/0.1162, allocations: 155.3 kB / 385.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.355e-05/0.1162, allocations: 4 kB / 385.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.1164, allocations: 8 kB / 385.1 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.58e-05/0.1165, allocations: 4.078 kB / 385.1 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.1165, allocations: 4 kB / 385.1 MB, free: 9.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001301/0.1178, allocations: 1.013 MB / 386.1 MB, free: 8.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1178, allocations: 3.938 kB / 386.1 MB, free: 8.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003507/0.1181, allocations: 67.98 kB / 386.2 MB, free: 8.406 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.0001745/0.1183, allocations: 115.2 kB / 386.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004005/0.1187, allocations: 131.8 kB / 386.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1187, allocations: 0 / 386.4 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001826/0.1189, allocations: 47.95 kB / 386.5 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000573/0.1195, allocations: 104.4 kB / 386.6 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.1214, allocations: 1.391 MB / 388 MB, free: 6.582 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/0.1218, allocations: 400.1 kB / 388.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006184/0.1224, allocations: 470.1 kB / 388.8 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.1226, allocations: 44.5 kB / 388.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1226, allocations: 0 / 388.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of Templates: time 0.01451/0.1371, allocations: 8.004 MB / 396.9 MB, free: 13.71 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.419564601033926]