Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 103.2 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.00166, allocations: 199.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2179/0.2179, allocations: 45.91 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002499/0.00025, allocations: 8 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1141, allocations: 63.46 MB / 481.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0008257/0.115, allocations: 205.2 kB / 481.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006804/0.1157, allocations: 235.6 kB / 481.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.394e-05/0.1157, allocations: 0 / 481.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.077e-05/0.1157, allocations: 4 kB / 481.8 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.764e-06/0.1158, allocations: 3.938 kB / 481.8 MB, free: 4.977 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453: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.0003202/0.1161, allocations: 35.89 kB / 481.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.395e-05/0.1161, allocations: 4 kB / 481.8 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.867e-05/0.1162, allocations: 4 kB / 481.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.126e-05/0.1162, allocations: 0 / 481.9 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.225e-05/0.1163, allocations: 11.91 kB / 481.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.1163, allocations: 0 / 481.9 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.1164, allocations: 39.92 kB / 481.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.635e-06/0.1165, allocations: 0 / 481.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.839e-05/0.1165, allocations: 29.7 kB / 481.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001223/0.1166, allocations: 39.94 kB / 482 MB, free: 4.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1166, allocations: 0 / 482 MB, free: 4.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1167, allocations: 0 / 482 MB, free: 4.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1167, allocations: 0 / 482 MB, free: 4.809 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.0003177/0.117, allocations: 349.1 kB / 482.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.117, allocations: 12.02 kB / 482.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.234e-05/0.1171, allocations: 3.938 kB / 482.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.1172, allocations: 167 kB / 482.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.1172, allocations: 0 / 482.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.993e-06/0.1172, allocations: 4 kB / 482.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.165e-05/0.1173, allocations: 33.7 kB / 482.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.1173, allocations: 3.984 kB / 482.5 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.1173, allocations: 3.938 kB / 482.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1173, allocations: 4 kB / 482.5 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.785e-05/0.1174, allocations: 3.938 kB / 482.5 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001247/0.1175, allocations: 153.6 kB / 482.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.648e-05/0.1175, allocations: 18.61 kB / 482.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-06/0.1175, allocations: 4 kB / 482.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/0.1176, allocations: 56.27 kB / 482.8 MB, free: 3.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.1176, allocations: 0 / 482.8 MB, free: 3.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001703/0.1178, allocations: 71.39 kB / 482.8 MB, free: 3.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.1178, allocations: 77.11 kB / 482.9 MB, free: 3.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.083e-05/0.1179, allocations: 89.86 kB / 483 MB, free: 3.562 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.1179, allocations: 25.7 kB / 483 MB, free: 3.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.373e-05/0.1179, allocations: 88.27 kB / 483.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.1179, allocations: 0 / 483.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.974e-06/0.1179, allocations: 0 / 483.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.118, allocations: 310.8 kB / 483.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.183e-06/0.1181, allocations: 0 / 483.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.108e-06/0.1181, allocations: 0 / 483.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.344e-05/0.1181, allocations: 33.7 kB / 483.4 MB, free: 3.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1181, allocations: 0 / 483.4 MB, free: 3.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.089e-05/0.1182, allocations: 71.28 kB / 483.5 MB, free: 3.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.1182, allocations: 33.8 kB / 483.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.1182, allocations: 0 / 483.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.306e-06/0.1182, allocations: 0 / 483.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.1182, allocations: 0 / 483.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.1183, allocations: 4 kB / 483.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.432e-05/0.1183, allocations: 0 / 483.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.1183, allocations: 0 / 483.6 MB, free: 2.965 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.765e-05/0.1184, allocations: 135.5 kB / 483.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-06/0.1184, allocations: 7.953 kB / 483.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.542e-06/0.1184, allocations: 11.06 kB / 483.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.91e-07/0.1184, allocations: 0 / 483.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1184, allocations: 0 / 483.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.1184, allocations: 0 / 483.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.595e-05/0.1185, allocations: 153.7 kB / 483.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1185, allocations: 0 / 483.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1185, allocations: 0 / 483.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1185, allocations: 3.953 kB / 483.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.1185, allocations: 0 / 483.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1185, allocations: 0 / 483.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.1185, allocations: 0 / 483.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.421e-05/0.1186, allocations: 98.77 kB / 484 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.975e-05/0.1187, allocations: 81.05 kB / 484 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.194e-05/0.1187, allocations: 3.953 kB / 484 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.776e-05/0.1187, allocations: 4 kB / 484 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.191e-05/0.1187, allocations: 0 / 484 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-06/0.1187, allocations: 0 / 484 MB, free: 2.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.797e-05/0.1188, allocations: 75.28 kB / 484.1 MB, free: 2.297 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1188, allocations: 4.031 kB / 484.1 MB, free: 2.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.119, allocations: 27.98 kB / 484.1 MB, free: 2.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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005436/0.1196, allocations: 276.4 kB / 484.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.435e-05/0.1197, allocations: 55.41 kB / 484.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1197, allocations: 0 / 484.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.722e-05/0.1197, allocations: 59.41 kB / 484.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001021/0.1198, allocations: 0 / 484.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002053/0.12, allocations: 86.75 kB / 484.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.1204, allocations: 0.6731 MB / 485.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.554e-06/0.1204, allocations: 0 / 485.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.365e-05/0.1204, allocations: 11.44 kB / 485.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1204, allocations: 0 / 485.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of Templates: time 0.002863/0.1233, allocations: 0.7684 MB / 486.1 MB, free: 320 kB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches