Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001649/0.001649, allocations: 195.3 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007564/0.0007564, allocations: 97.78 kB / 299.8 MB, free: 5.348 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3442/0.3442, allocations: 45 MB / 397 MB, free: 31.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.000284, allocations: 8 kB / 470.8 MB, free: 7.121 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3235, allocations: 63.09 MB / 0.5214 GB, free: 38.43 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0005234/0.3241, allocations: 212.9 kB / 0.5216 GB, free: 38.29 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005269/0.3246, allocations: 391.1 kB / 0.5219 GB, free: 37.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.407e-05/0.3247, allocations: 4 kB / 0.5219 GB, free: 37.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.775e-05/0.3247, allocations: 0 / 0.5219 GB, free: 37.96 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.072e-06/0.3247, allocations: 3.938 kB / 0.5219 GB, free: 37.95 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.0002876/0.325, allocations: 46.52 kB / 0.522 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.537e-05/0.325, allocations: 0 / 0.522 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.801e-05/0.3251, allocations: 0 / 0.522 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.869e-05/0.3251, allocations: 0 / 0.522 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.348e-05/0.3251, allocations: 10.5 kB / 0.522 GB, free: 37.92 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-06/0.3252, allocations: 0 / 0.522 GB, free: 37.92 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.3253, allocations: 64.88 kB / 0.5221 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.3253, allocations: 0 / 0.5221 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.145e-05/0.3253, allocations: 25.7 kB / 0.5221 GB, free: 37.87 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.3254, allocations: 57.16 kB / 0.5221 GB, free: 37.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3255, allocations: 0 / 0.5221 GB, free: 37.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3255, allocations: 0 / 0.5221 GB, free: 37.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.3255, allocations: 0 / 0.5221 GB, free: 37.84 MB / 378.7 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.0002361/0.3257, allocations: 360.3 kB / 0.5225 GB, free: 37.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.3258, allocations: 10.72 kB / 0.5225 GB, free: 37.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.548e-05/0.3258, allocations: 0.9375 kB / 0.5225 GB, free: 37.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.237e-05/0.3258, allocations: 163.9 kB / 0.5226 GB, free: 37.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.3259, allocations: 384 / 0.5226 GB, free: 37.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.298e-06/0.3259, allocations: 4.375 kB / 0.5227 GB, free: 37.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.143e-05/0.326, allocations: 33.17 kB / 0.5227 GB, free: 37.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.326, allocations: 192 / 0.5227 GB, free: 37.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-06/0.326, allocations: 6.344 kB / 0.5227 GB, free: 37.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.326, allocations: 0 / 0.5227 GB, free: 37.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.417e-05/0.326, allocations: 3.938 kB / 0.5227 GB, free: 37.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.237e-05/0.3261, allocations: 147.6 kB / 0.5228 GB, free: 37.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.719e-05/0.3261, allocations: 14.58 kB / 0.5228 GB, free: 36.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.025e-05/0.3261, allocations: 12.7 kB / 0.5229 GB, free: 36.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.633e-06/0.3262, allocations: 0 / 0.5229 GB, free: 36.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.3262, allocations: 60.27 kB / 0.5229 GB, free: 36.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.3262, allocations: 0 / 0.5229 GB, free: 36.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001395/0.3263, allocations: 74.28 kB / 0.523 GB, free: 36.83 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/0.3264, allocations: 77.11 kB / 0.5231 GB, free: 36.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.117e-05/0.3264, allocations: 93.7 kB / 0.5231 GB, free: 36.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.332e-06/0.3264, allocations: 29.83 kB / 0.5232 GB, free: 36.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.042e-05/0.3264, allocations: 84.08 kB / 0.5233 GB, free: 36.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.153e-05/0.3265, allocations: 0 / 0.5233 GB, free: 36.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.803e-06/0.3265, allocations: 0 / 0.5233 GB, free: 36.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.654e-05/0.3265, allocations: 318.2 kB / 0.5236 GB, free: 36.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.334e-06/0.3265, allocations: 0 / 0.5236 GB, free: 36.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.977e-06/0.3265, allocations: 2.625 kB / 0.5236 GB, free: 36.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.113e-05/0.3266, allocations: 59.02 kB / 0.5236 GB, free: 36.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3266, allocations: 4.062 kB / 0.5236 GB, free: 36.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.055e-05/0.3266, allocations: 67.19 kB / 0.5237 GB, free: 36.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3267, allocations: 34.92 kB / 0.5237 GB, free: 36.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3267, allocations: 0 / 0.5237 GB, free: 36.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.3267, allocations: 3.938 kB / 0.5237 GB, free: 36.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3267, allocations: 3.938 kB / 0.5237 GB, free: 36.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.3267, allocations: 0 / 0.5237 GB, free: 36.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.617e-05/0.3267, allocations: 2.812 kB / 0.5237 GB, free: 36.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.3267, allocations: 0 / 0.5237 GB, free: 36.02 MB / 378.7 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 5.416e-05/0.3268, allocations: 141.8 kB / 0.5239 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-06/0.3268, allocations: 0 / 0.5239 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.086e-06/0.3268, allocations: 10.66 kB / 0.5239 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.3268, allocations: 0 / 0.5239 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3268, allocations: 0 / 0.5239 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3269, allocations: 2.719 kB / 0.5239 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.359e-05/0.3269, allocations: 153 kB / 0.524 GB, free: 35.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3269, allocations: 0 / 0.524 GB, free: 35.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3269, allocations: 0 / 0.524 GB, free: 35.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.3269, allocations: 2.906 kB / 0.524 GB, free: 35.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.3269, allocations: 7.938 kB / 0.524 GB, free: 35.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.3269, allocations: 0 / 0.524 GB, free: 35.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.327, allocations: 0 / 0.524 GB, free: 35.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.712e-05/0.327, allocations: 93.2 kB / 0.5241 GB, free: 35.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.378e-05/0.327, allocations: 77.11 kB / 0.5242 GB, free: 35.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.3271, allocations: 6.531 kB / 0.5242 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-06/0.3271, allocations: 0 / 0.5242 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.495e-05/0.3271, allocations: 7.328 kB / 0.5242 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.3271, allocations: 6.719 kB / 0.5242 GB, free: 35.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.319e-05/0.3271, allocations: 75.28 kB / 0.5243 GB, free: 35.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3271, allocations: 0 / 0.5243 GB, free: 35.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002094/0.3273, allocations: 18.34 kB / 0.5243 GB, free: 35.38 MB / 378.7 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.0004644/0.3278, allocations: 324.4 kB / 0.5246 GB, free: 35.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.594e-05/0.3279, allocations: 54.22 kB / 0.5247 GB, free: 35.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3279, allocations: 0 / 0.5247 GB, free: 35.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.674e-05/0.3279, allocations: 61 kB / 0.5247 GB, free: 35.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.328, allocations: 11.38 kB / 0.5247 GB, free: 35.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001223/0.3282, allocations: 72.3 kB / 0.5248 GB, free: 34.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.845e-05/0.3283, allocations: 0.672 MB / 0.5255 GB, free: 34.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.748e-06/0.3283, allocations: 0 / 0.5255 GB, free: 34.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.414e-06/0.3283, allocations: 7.438 kB / 0.5255 GB, free: 34.26 MB / 378.7 MB Notification: Performance of SimCode: time 1.9e-07/0.3283, allocations: 0 / 0.5255 GB, free: 34.26 MB / 378.7 MB Notification: Performance of Templates: time 0.002525/0.3308, allocations: 0.7826 MB / 0.5262 GB, free: 34.13 MB / 378.7 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