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.001707/0.001707, allocations: 115.9 kB / 18.41 MB, free: 4.684 MB / 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.001968/0.001968, allocations: 189.3 kB / 21.35 MB, free: 1.75 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.467/1.467, allocations: 222.9 MB / 247 MB, free: 4.211 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.001703/0.001703, allocations: 51.92 kB / 358.6 MB, free: 8.488 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09615/0.09787, allocations: 49.44 MB / 408.1 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003422/0.1013, allocations: 1.898 MB / 410 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.1033, allocations: 1.234 MB / 411.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.1034, allocations: 0 / 411.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001142/0.1046, allocations: 0.4985 MB / 411.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.1049, allocations: 195.4 kB / 411.9 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.1054, allocations: 183.2 kB / 412.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004084/0.1058, allocations: 227.1 kB / 412.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.606e-05/0.1059, allocations: 21.69 kB / 412.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002469/0.1062, allocations: 123.5 kB / 412.4 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003338/0.1065, allocations: 215.4 kB / 412.7 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.1065, allocations: 8 kB / 412.7 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001901/0.1067, allocations: 59.97 kB / 412.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002649/0.107, allocations: 263.3 kB / 413 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002637/0.1073, allocations: 281.9 kB / 413.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008525/0.1082, allocations: 0.7701 MB / 414 MB, free: 1.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1082, allocations: 0 / 414 MB, free: 1.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1082, allocations: 3.938 kB / 414 MB, free: 1.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.223e-05/0.1082, allocations: 0 / 414 MB, free: 1.035 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.002811/0.111, allocations: 1.216 MB / 415.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.1111, allocations: 8.031 kB / 415.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002261/0.1113, allocations: 92.38 kB / 415.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.1124, allocations: 0.7634 MB / 416.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.1124, allocations: 4.375 kB / 416.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.1124, allocations: 8.359 kB / 416.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.1127, allocations: 117.9 kB / 416.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.1127, allocations: 0 / 416.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.1128, allocations: 0 / 416.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1128, allocations: 4 kB / 416.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003691/0.1131, allocations: 143.9 kB / 416.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.1143, allocations: 0.8181 MB / 417.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002163/0.1145, allocations: 82.52 kB / 417.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.1147, allocations: 76.89 kB / 417.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.1147, allocations: 0 / 417.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.1148, allocations: 38.56 kB / 417.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.22e-07/0.1148, allocations: 0 / 417.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008715/0.1156, allocations: 332.9 kB / 417.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.1157, allocations: 51.41 kB / 417.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00181/0.1175, allocations: 1.405 MB / 419.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.1175, allocations: 25.7 kB / 419.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003519/0.1179, allocations: 384.4 kB / 419.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.1179, allocations: 11.91 kB / 419.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.264e-05/0.118, allocations: 21.7 kB / 419.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1181, allocations: 310 kB / 419.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.1183, allocations: 67.94 kB / 420 MB, free: 10.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.1185, allocations: 86.52 kB / 420.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.1189, allocations: 162.3 kB / 420.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1189, allocations: 0 / 420.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006363/0.1196, allocations: 268.9 kB / 420.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.1196, allocations: 8.094 kB / 420.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1196, allocations: 0 / 420.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.1196, allocations: 4 kB / 420.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.1198, allocations: 19.92 kB / 420.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1198, allocations: 0 / 420.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.12, allocations: 11.98 kB / 420.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.1201, allocations: 0 / 420.5 MB, free: 10.27 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.0003683/0.1204, allocations: 349.6 kB / 420.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/0.1206, allocations: 95.39 kB / 421 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006442/0.1213, allocations: 277.5 kB / 421.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.1213, allocations: 4 kB / 421.2 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1213, allocations: 4 kB / 421.2 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.1213, allocations: 3.938 kB / 421.2 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005828/0.1219, allocations: 0.5143 MB / 421.8 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1219, allocations: 0 / 421.8 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.934e-05/0.122, allocations: 11.98 kB / 421.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.122, allocations: 0 / 421.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.1221, allocations: 3.984 kB / 421.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1221, allocations: 0 / 421.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1221, allocations: 4 kB / 421.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005456/0.1226, allocations: 323.2 kB / 422.1 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002998/0.1229, allocations: 228.5 kB / 422.3 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.614e-05/0.123, allocations: 4 kB / 422.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.1233, allocations: 7.984 kB / 422.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.646e-05/0.1233, allocations: 4 kB / 422.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.1233, allocations: 4 kB / 422.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001358/0.1247, allocations: 1.021 MB / 423.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1247, allocations: 0 / 423.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003442/0.125, allocations: 60 kB / 423.4 MB, free: 7.266 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.0002104/0.1253, allocations: 111.6 kB / 423.5 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004099/0.1257, allocations: 135.8 kB / 423.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1257, allocations: 0 / 423.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.1259, allocations: 55.95 kB / 423.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005936/0.1265, allocations: 108.3 kB / 423.8 MB, free: 6.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.1286, allocations: 1.439 MB / 425.3 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006843/0.1293, allocations: 0.9969 MB / 426.2 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.1294, allocations: 43.42 kB / 426.3 MB, free: 4.309 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.1295, allocations: 3.938 kB / 426.3 MB, free: 4.305 MB / 350.1 MB Notification: Performance of Templates: time 0.205/0.3345, allocations: 9.181 MB / 435.5 MB, free: 21.99 MB / 350.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 -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.811143344035372]