Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 103.3 kB / 16.93 MB, free: 5.793 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.002126/0.002127, allocations: 191.3 kB / 17.86 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 205.1 MB / 223.7 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2144/0.2144, allocations: 43.52 MB / 314.6 MB, free: 0.5195 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 70.88 kB / 383.4 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09432/0.09604, allocations: 57.79 MB / 441.2 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001526/0.09761, allocations: 482.6 kB / 441.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005066/0.09813, allocations: 264.5 kB / 441.9 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.163e-05/0.09817, allocations: 4 kB / 441.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.33e-05/0.09818, allocations: 0 / 441.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.947e-06/0.0982, allocations: 0 / 441.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002652/0.09847, allocations: 51.81 kB / 442 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.063e-05/0.09853, allocations: 4 kB / 442 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.133e-05/0.09858, allocations: 4 kB / 442 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.397e-05/0.0986, allocations: 0 / 442 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.937e-05/0.09862, allocations: 0 / 442 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.426e-06/0.09863, allocations: 0 / 442 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.09874, allocations: 63.94 kB / 442 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.223e-06/0.09876, allocations: 0 / 442 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.675e-05/0.09878, allocations: 0 / 442 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.09888, allocations: 63.88 kB / 442.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09889, allocations: 0 / 442.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.0989, allocations: 0 / 442.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.09891, allocations: 0 / 442.1 MB, free: 5.973 MB / 318.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.0002285/0.09915, allocations: 353.3 kB / 442.4 MB, free: 5.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.09918, allocations: 15.89 kB / 442.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.09922, allocations: 4.844 kB / 442.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.22e-05/0.09928, allocations: 168.4 kB / 442.6 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.09929, allocations: 384 / 442.6 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-06/0.0993, allocations: 8.312 kB / 442.6 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.033e-05/0.09938, allocations: 30.27 kB / 442.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.371e-06/0.09939, allocations: 192 / 442.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-06/0.0994, allocations: 3.938 kB / 442.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.09941, allocations: 0 / 442.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.532e-05/0.09943, allocations: 0 / 442.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.805e-05/0.09951, allocations: 145.7 kB / 442.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.216e-05/0.09955, allocations: 18.56 kB / 442.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.281e-05/0.09957, allocations: 24.83 kB / 442.9 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.164e-06/0.09958, allocations: 0 / 442.9 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.09963, allocations: 60.2 kB / 442.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.09963, allocations: 0 / 442.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001383/0.09978, allocations: 67.33 kB / 443 MB, free: 4.902 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.09982, allocations: 81.09 kB / 443.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.711e-05/0.09984, allocations: 89.86 kB / 443.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.562e-06/0.09985, allocations: 29.83 kB / 443.2 MB, free: 4.672 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.081e-05/0.09987, allocations: 84.14 kB / 443.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.261e-05/0.09988, allocations: 4.281 kB / 443.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.935e-05/0.09991, allocations: 9.719 kB / 443.3 MB, free: 4.566 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.718e-05/0.09995, allocations: 310.8 kB / 443.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.094e-05/0.09997, allocations: 7.938 kB / 443.6 MB, free: 4.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.539e-06/0.09997, allocations: 0 / 443.6 MB, free: 4.246 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.804e-05/0.1, allocations: 60.33 kB / 443.6 MB, free: 4.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1, allocations: 7.984 kB / 443.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.733e-05/0.1001, allocations: 59.41 kB / 443.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1001, allocations: 33.7 kB / 443.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.1001, allocations: 0 / 443.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.1001, allocations: 3.938 kB / 443.7 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.1001, allocations: 0 / 443.7 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.1001, allocations: 0 / 443.7 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.476e-05/0.1001, allocations: 3.938 kB / 443.8 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.1002, allocations: 4 kB / 443.8 MB, free: 4.043 MB / 318.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 4.302e-05/0.1002, allocations: 147.4 kB / 443.9 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-06/0.1002, allocations: 0 / 443.9 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.145e-06/0.1002, allocations: 11.06 kB / 443.9 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1002, allocations: 4 kB / 443.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.1002, allocations: 0 / 443.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.1003, allocations: 0 / 443.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.734e-05/0.1003, allocations: 149.7 kB / 444.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1003, allocations: 0 / 444.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1003, allocations: 0 / 444.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.1003, allocations: 4 kB / 444.1 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.1003, allocations: 7.938 kB / 444.1 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1003, allocations: 0 / 444.1 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1003, allocations: 3.938 kB / 444.1 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.942e-05/0.1004, allocations: 90.83 kB / 444.2 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.41e-05/0.1004, allocations: 77.11 kB / 444.2 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.08e-05/0.1004, allocations: 3.938 kB / 444.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.576e-06/0.1005, allocations: 0 / 444.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.437e-05/0.1005, allocations: 12.02 kB / 444.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.1005, allocations: 0 / 444.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.102e-05/0.1005, allocations: 79.22 kB / 444.3 MB, free: 3.355 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1005, allocations: 3.938 kB / 444.3 MB, free: 3.352 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.1007, allocations: 27.98 kB / 444.4 MB, free: 3.324 MB / 318.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.0004238/0.1012, allocations: 252.8 kB / 444.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.688e-05/0.1012, allocations: 59.41 kB / 444.7 MB, free: 3.062 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1013, allocations: 0 / 444.7 MB, free: 3.062 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.78e-05/0.1013, allocations: 63.39 kB / 444.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.1014, allocations: 0 / 444.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001523/0.1016, allocations: 94.78 kB / 444.8 MB, free: 2.863 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.546e-05/0.1017, allocations: 0.669 MB / 445.5 MB, free: 2.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.778e-06/0.1017, allocations: 15.56 kB / 445.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1017, allocations: 0 / 445.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of Templates: time 0.002148/0.1038, allocations: 0.9714 MB / 446.5 MB, free: 1.18 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches