Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 94.53 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002168/0.002168, allocations: 172.7 kB / 18.25 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2075/0.2075, allocations: 44.25 MB / 337.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003606/0.0003605, allocations: 8.281 kB / 410.3 MB, free: 27.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1179, allocations: 61.92 MB / 472.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0005931/0.1186, allocations: 201.2 kB / 472.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006654/0.1192, allocations: 254.7 kB / 472.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.838e-06/0.1193, allocations: 0 / 472.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.1193, allocations: 0 / 472.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-06/0.1193, allocations: 4 kB / 472.7 MB, free: 12.91 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002809/0.1196, allocations: 35.91 kB / 472.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.772e-05/0.1196, allocations: 11.98 kB / 472.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.46e-05/0.1197, allocations: 0 / 472.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.622e-05/0.1197, allocations: 0 / 472.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.581e-05/0.1198, allocations: 3.938 kB / 472.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.1198, allocations: 0 / 472.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.1199, allocations: 63.89 kB / 472.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.598e-06/0.1199, allocations: 3.984 kB / 472.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.371e-05/0.12, allocations: 25.7 kB / 472.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.1201, allocations: 55.94 kB / 472.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.1201, allocations: 7.984 kB / 472.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1201, allocations: 0 / 472.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1201, allocations: 0 / 472.9 MB, free: 12.7 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003048/0.1204, allocations: 355.5 kB / 473.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1205, allocations: 12.02 kB / 473.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.174e-05/0.1205, allocations: 4.875 kB / 473.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.302e-05/0.1206, allocations: 160.4 kB / 473.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.1206, allocations: 4.375 kB / 473.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.1207, allocations: 4.359 kB / 473.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.42e-05/0.1207, allocations: 34.27 kB / 473.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.1208, allocations: 192 / 473.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.1208, allocations: 7.938 kB / 473.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1208, allocations: 0 / 473.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.1208, allocations: 3.938 kB / 473.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001306/0.1209, allocations: 145.7 kB / 473.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.754e-05/0.121, allocations: 18.61 kB / 473.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.473e-05/0.121, allocations: 4.859 kB / 473.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-06/0.121, allocations: 4 kB / 473.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/0.1211, allocations: 60.27 kB / 473.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1211, allocations: 4.062 kB / 473.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001827/0.1213, allocations: 67.27 kB / 473.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.1214, allocations: 81.11 kB / 473.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.766e-05/0.1214, allocations: 89.86 kB / 473.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.1214, allocations: 25.7 kB / 474 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.267e-05/0.1215, allocations: 84.27 kB / 474 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.1215, allocations: 4 kB / 474 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.751e-05/0.1215, allocations: 9.719 kB / 474.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1217, allocations: 310.8 kB / 474.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-06/0.1217, allocations: 4 kB / 474.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.236e-06/0.1217, allocations: 3.984 kB / 474.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.448e-05/0.1218, allocations: 60.27 kB / 474.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1218, allocations: 0 / 474.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.773e-05/0.1219, allocations: 71.41 kB / 474.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.933e-05/0.1219, allocations: 29.7 kB / 474.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.122, allocations: 0 / 474.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.122, allocations: 7.922 kB / 474.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.075e-06/0.122, allocations: 0 / 474.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.122, allocations: 0 / 474.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.125e-05/0.122, allocations: 7.938 kB / 474.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.1221, allocations: 0 / 474.5 MB, free: 10.78 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000104/0.1222, allocations: 131.5 kB / 474.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.113e-05/0.1222, allocations: 8.031 kB / 474.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.722e-05/0.1222, allocations: 11.02 kB / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1222, allocations: 0 / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.1222, allocations: 0 / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1222, allocations: 0 / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.1224, allocations: 145.7 kB / 474.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.1224, allocations: 3.938 kB / 474.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.383e-06/0.1224, allocations: 4 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1224, allocations: 0 / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.1224, allocations: 3.938 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1224, allocations: 4 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1224, allocations: 4 kB / 474.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001325/0.1226, allocations: 98.77 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.533e-05/0.1226, allocations: 77.11 kB / 475 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.1226, allocations: 3.938 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.254e-05/0.1226, allocations: 0 / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.03e-05/0.1227, allocations: 4 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.1227, allocations: 32 / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.01e-05/0.1227, allocations: 79.28 kB / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1227, allocations: 0 / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002663/0.123, allocations: 23.98 kB / 475.1 MB, free: 10.08 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0006568/0.1237, allocations: 284.3 kB / 475.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001271/0.1238, allocations: 55.41 kB / 475.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1238, allocations: 3.938 kB / 475.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.224e-05/0.1239, allocations: 63.33 kB / 475.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.124, allocations: 8.125 kB / 475.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002371/0.1243, allocations: 78.67 kB / 475.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.1246, allocations: 0.6692 MB / 476.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.676e-06/0.1246, allocations: 0 / 476.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.434e-05/0.1246, allocations: 11.44 kB / 476.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of SimCode: time 1.353e-06/0.1246, allocations: 0 / 476.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of Templates: time 0.003889/0.1285, allocations: 0.7889 MB / 477.1 MB, free: 8.113 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches