Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001127/0.001127, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 59.41 kB / 306.9 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.121, allocations: 50.52 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.004634/0.1256, allocations: 1.908 MB / 359.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.1281, allocations: 1.257 MB / 360.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.1282, allocations: 4 kB / 360.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001334/0.1296, allocations: 0.5027 MB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003646/0.1299, allocations: 195.4 kB / 361.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006546/0.1306, allocations: 163.3 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004045/0.131, allocations: 239.1 kB / 361.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.1312, allocations: 21.67 kB / 361.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002743/0.1314, allocations: 127.6 kB / 361.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003334/0.1318, allocations: 211.5 kB / 362.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.1318, allocations: 8 kB / 362.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001946/0.132, allocations: 59.97 kB / 362.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002729/0.1323, allocations: 263.2 kB / 362.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003265/0.1327, allocations: 269.9 kB / 362.6 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009526/0.1336, allocations: 0.7667 MB / 363.4 MB, free: 8.074 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.1337, allocations: 0 / 363.4 MB, free: 8.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1337, allocations: 3.938 kB / 363.4 MB, free: 8.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.1337, allocations: 0 / 363.4 MB, free: 8.07 MB / 302.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.003422/0.1371, allocations: 1.177 MB / 364.6 MB, free: 6.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.1372, allocations: 8.031 kB / 364.6 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.1375, allocations: 91.83 kB / 364.7 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.1387, allocations: 0.7508 MB / 365.4 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1387, allocations: 384 / 365.4 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.1387, allocations: 384 / 365.4 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.1391, allocations: 121.9 kB / 365.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1391, allocations: 0 / 365.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.1391, allocations: 0 / 365.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.1391, allocations: 4 kB / 365.6 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004762/0.1396, allocations: 143.9 kB / 365.7 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.141, allocations: 0.818 MB / 366.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002743/0.1413, allocations: 86.52 kB / 366.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.1415, allocations: 76.89 kB / 366.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.1415, allocations: 4 kB / 366.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.1416, allocations: 30.56 kB / 366.7 MB, free: 4.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.253e-06/0.1416, allocations: 0 / 366.7 MB, free: 4.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008247/0.1424, allocations: 324.4 kB / 367 MB, free: 4.262 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.1425, allocations: 51.41 kB / 367.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.144, allocations: 1.409 MB / 368.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.144, allocations: 25.7 kB / 368.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003181/0.1443, allocations: 388.4 kB / 368.9 MB, free: 2.355 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.962e-05/0.1444, allocations: 7.812 kB / 368.9 MB, free: 2.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.817e-05/0.1444, allocations: 21.72 kB / 368.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.1446, allocations: 310 kB / 369.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.1448, allocations: 59.95 kB / 369.3 MB, free: 1.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.1449, allocations: 90.7 kB / 369.4 MB, free: 1.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.1453, allocations: 162.3 kB / 369.5 MB, free: 1.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1453, allocations: 0 / 369.5 MB, free: 1.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005341/0.1458, allocations: 268.5 kB / 369.8 MB, free: 1.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1459, allocations: 4 kB / 369.8 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1459, allocations: 96 / 369.8 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.1459, allocations: 7.984 kB / 369.8 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.1461, allocations: 11.98 kB / 369.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.1461, allocations: 0 / 369.8 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/0.1463, allocations: 16.08 kB / 369.8 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.1463, allocations: 0 / 369.8 MB, free: 1.379 MB / 302.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.0003382/0.1466, allocations: 349.5 kB / 370.2 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.1468, allocations: 90.86 kB / 370.3 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006113/0.1474, allocations: 273.3 kB / 370.5 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1475, allocations: 0 / 370.5 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.1475, allocations: 4 kB / 370.5 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1475, allocations: 4 kB / 370.5 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005687/0.148, allocations: 0.5143 MB / 371.1 MB, free: 92 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.1481, allocations: 7.922 kB / 371.1 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.055e-05/0.1482, allocations: 11.98 kB / 371.1 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1482, allocations: 3.938 kB / 371.1 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.1482, allocations: 8 kB / 371.1 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1482, allocations: 0 / 371.1 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1482, allocations: 0 / 371.1 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2033/0.3515, allocations: 313.2 kB / 371.4 MB, free: 21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003212/0.3519, allocations: 225.8 kB / 371.6 MB, free: 20.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.384e-05/0.352, allocations: 1.141 kB / 371.6 MB, free: 20.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.3522, allocations: 9.047 kB / 371.6 MB, free: 20.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.126e-05/0.3523, allocations: 4.328 kB / 371.6 MB, free: 20.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.3523, allocations: 3.812 kB / 371.6 MB, free: 20.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001617/0.3539, allocations: 1.015 MB / 372.6 MB, free: 20.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3539, allocations: 0 / 372.6 MB, free: 20.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003698/0.3543, allocations: 64.91 kB / 372.7 MB, free: 20.58 MB / 302.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.0002165/0.3545, allocations: 107.9 kB / 372.8 MB, free: 20.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004292/0.355, allocations: 128.4 kB / 372.9 MB, free: 20.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.355, allocations: 0 / 372.9 MB, free: 20.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.3552, allocations: 56.81 kB / 373 MB, free: 20.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006268/0.3558, allocations: 106.6 kB / 373.1 MB, free: 20.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.3578, allocations: 1.383 MB / 374.5 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005426/0.3584, allocations: 0.9989 MB / 375.5 MB, free: 19.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007774/0.3592, allocations: 472 kB / 375.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.3593, allocations: 42.17 kB / 376 MB, free: 19.05 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3593, allocations: 0 / 376 MB, free: 19.05 MB / 302.1 MB Notification: Performance of Templates: time 0.01631/0.3756, allocations: 7.369 MB / 383.4 MB, free: 17.36 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches