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.001865/0.001865, allocations: 73.95 kB / 21.24 MB, free: 0.5547 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.002263/0.002263, allocations: 159.2 kB / 24.5 MB, free: 3.715 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.454/1.454, allocations: 177.2 MB / 204.9 MB, free: 8.988 MB / 190.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.001637/0.001637, allocations: 51.69 kB / 325.5 MB, free: 472 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1039, allocations: 53.34 MB / 378.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003345/0.1073, allocations: 1.865 MB / 380.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.1092, allocations: 1.125 MB / 381.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.374e-05/0.1093, allocations: 4 kB / 381.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.1103, allocations: 0.4908 MB / 382.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000264/0.1106, allocations: 195.4 kB / 382.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.111, allocations: 163.3 kB / 382.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003497/0.1114, allocations: 219.1 kB / 382.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.679e-05/0.1115, allocations: 13.8 kB / 383 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002585/0.1117, allocations: 135.5 kB / 383.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003081/0.112, allocations: 223.5 kB / 383.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.056e-05/0.1121, allocations: 8 kB / 383.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.1122, allocations: 63.89 kB / 383.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.1125, allocations: 259.3 kB / 383.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002228/0.1127, allocations: 206.4 kB / 383.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008652/0.1135, allocations: 0.774 MB / 384.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.1136, allocations: 0 / 384.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.1136, allocations: 0 / 384.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1136, allocations: 0 / 384.6 MB, free: 10.07 MB / 350.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.002652/0.1162, allocations: 1.141 MB / 385.7 MB, free: 8.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.1163, allocations: 16.03 kB / 385.8 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001936/0.1164, allocations: 92.33 kB / 385.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.1175, allocations: 0.6993 MB / 386.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.1176, allocations: 8.297 kB / 386.6 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.1176, allocations: 384 / 386.6 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.1179, allocations: 117.9 kB / 386.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1179, allocations: 0 / 386.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.1179, allocations: 0 / 386.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1179, allocations: 4 kB / 386.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003713/0.1183, allocations: 147.9 kB / 386.8 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.1193, allocations: 0.6887 MB / 387.5 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/0.1195, allocations: 90.41 kB / 387.6 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001878/0.1197, allocations: 76.89 kB / 387.7 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.1197, allocations: 3.984 kB / 387.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.1197, allocations: 30.56 kB / 387.7 MB, free: 6.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1197, allocations: 4 kB / 387.7 MB, free: 6.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008103/0.1205, allocations: 332.9 kB / 388 MB, free: 6.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.1206, allocations: 55.34 kB / 388.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/0.1224, allocations: 1.405 MB / 389.5 MB, free: 5.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.1224, allocations: 25.7 kB / 389.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003665/0.1228, allocations: 388.4 kB / 389.9 MB, free: 4.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.1228, allocations: 3.953 kB / 389.9 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.755e-05/0.1229, allocations: 21.7 kB / 389.9 MB, free: 4.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.123, allocations: 314 kB / 390.2 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.1232, allocations: 71.88 kB / 390.3 MB, free: 4.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.1234, allocations: 86.52 kB / 390.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.1238, allocations: 154.4 kB / 390.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1238, allocations: 0 / 390.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005991/0.1244, allocations: 276.8 kB / 390.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.1244, allocations: 7.938 kB / 390.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.1244, allocations: 3.984 kB / 390.8 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.1244, allocations: 4 kB / 390.8 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.1246, allocations: 15.98 kB / 390.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.1246, allocations: 0 / 390.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.1248, allocations: 11.94 kB / 390.8 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.1248, allocations: 8.078 kB / 390.9 MB, free: 3.602 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.0003746/0.1252, allocations: 341.6 kB / 391.2 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.1254, allocations: 91.42 kB / 391.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006331/0.126, allocations: 277.6 kB / 391.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.126, allocations: 48 / 391.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.126, allocations: 3.984 kB / 391.6 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.126, allocations: 0 / 391.6 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005202/0.1265, allocations: 414 kB / 392 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.1265, allocations: 7.922 kB / 392 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.118e-05/0.1266, allocations: 11.98 kB / 392 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.1266, allocations: 0 / 392 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.1266, allocations: 4 kB / 392 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1266, allocations: 0 / 392 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1266, allocations: 4 kB / 392 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005425/0.1272, allocations: 323.3 kB / 392.3 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003509/0.1275, allocations: 159.3 kB / 392.5 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.245e-05/0.1276, allocations: 4 kB / 392.5 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.1278, allocations: 4 kB / 392.5 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.1278, allocations: 3.984 kB / 392.5 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.1278, allocations: 4 kB / 392.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001356/0.1292, allocations: 1.013 MB / 393.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1292, allocations: 0 / 393.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003515/0.1295, allocations: 68 kB / 393.6 MB, free: 0.8281 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.0001798/0.1297, allocations: 107.2 kB / 393.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004068/0.1301, allocations: 131.8 kB / 393.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1301, allocations: 192 / 393.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.1303, allocations: 47.97 kB / 393.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005838/0.1309, allocations: 100.8 kB / 393.9 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.1328, allocations: 1.384 MB / 395.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004781/0.1333, allocations: 404 kB / 395.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006626/0.134, allocations: 482.2 kB / 396.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1341, allocations: 40.5 kB / 396.2 MB, free: 14.08 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1341, allocations: 0 / 396.2 MB, free: 14.08 MB / 366.1 MB Notification: Performance of Templates: time 0.01505/0.1491, allocations: 7.97 MB / 404.2 MB, free: 6.184 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 -s ida -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: 4.468649054062553]