Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 198.1 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 226.5 MB / 243.4 MB, free: 8.246 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007795/0.0007795, allocations: 98.45 kB / 295.5 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2996/0.2996, allocations: 44.83 MB / 392.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003024/0.0003025, allocations: 8 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3219, allocations: 62.96 MB / 0.5159 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0004771/0.3224, allocations: 206.3 kB / 0.5161 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004297/0.3228, allocations: 248.2 kB / 0.5163 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.716e-05/0.3229, allocations: 0 / 0.5163 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.3229, allocations: 0 / 0.5163 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.322e-06/0.3229, allocations: 3.938 kB / 0.5163 GB, free: 36.79 MB / 378.7 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.0002479/0.3231, allocations: 46.44 kB / 0.5163 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.012e-05/0.3232, allocations: 0 / 0.5163 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.3232, allocations: 0 / 0.5163 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.3233, allocations: 2.562 kB / 0.5163 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.305e-05/0.3233, allocations: 0 / 0.5163 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-06/0.3233, allocations: 0 / 0.5163 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.3234, allocations: 58.72 kB / 0.5164 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.823e-06/0.3234, allocations: 4 kB / 0.5164 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.543e-05/0.3235, allocations: 25.7 kB / 0.5164 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.942e-05/0.3235, allocations: 45.19 kB / 0.5165 GB, free: 36.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3235, allocations: 0 / 0.5165 GB, free: 36.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3236, allocations: 0 / 0.5165 GB, free: 36.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.3236, allocations: 0 / 0.5165 GB, free: 36.69 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.0002272/0.3238, allocations: 355.3 kB / 0.5168 GB, free: 36.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.3238, allocations: 8.75 kB / 0.5168 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.468e-05/0.3239, allocations: 0.9375 kB / 0.5168 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.764e-05/0.3239, allocations: 163.6 kB / 0.517 GB, free: 36.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.3239, allocations: 7.25 kB / 0.517 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.324, allocations: 384 / 0.517 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.892e-05/0.324, allocations: 33.36 kB / 0.517 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.651e-06/0.324, allocations: 192 / 0.517 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-06/0.3241, allocations: 3.938 kB / 0.517 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3241, allocations: 0 / 0.517 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.46e-05/0.3241, allocations: 2.562 kB / 0.517 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001089/0.3242, allocations: 149 kB / 0.5172 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.681e-05/0.3242, allocations: 25.89 kB / 0.5172 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.262e-05/0.3243, allocations: 4.859 kB / 0.5172 GB, free: 35.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.275e-06/0.3243, allocations: 3.938 kB / 0.5172 GB, free: 35.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.3243, allocations: 59.11 kB / 0.5173 GB, free: 35.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3243, allocations: 0 / 0.5173 GB, free: 35.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000132/0.3245, allocations: 68.34 kB / 0.5173 GB, free: 35.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.359e-05/0.3245, allocations: 84.02 kB / 0.5174 GB, free: 35.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.753e-05/0.3245, allocations: 93.98 kB / 0.5175 GB, free: 35.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-06/0.3245, allocations: 25.7 kB / 0.5175 GB, free: 35.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.848e-06/0.3245, allocations: 83.38 kB / 0.5176 GB, free: 35.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.3246, allocations: 0 / 0.5176 GB, free: 35.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.683e-06/0.3246, allocations: 0 / 0.5176 GB, free: 35.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.981e-05/0.3246, allocations: 313.9 kB / 0.5179 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.732e-06/0.3246, allocations: 0 / 0.5179 GB, free: 35.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.059e-06/0.3246, allocations: 3.938 kB / 0.5179 GB, free: 35.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.887e-05/0.3247, allocations: 66.98 kB / 0.518 GB, free: 34.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3247, allocations: 2.656 kB / 0.518 GB, free: 34.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.712e-05/0.3247, allocations: 60.25 kB / 0.518 GB, free: 34.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3248, allocations: 31.61 kB / 0.5181 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.3248, allocations: 0 / 0.5181 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.3248, allocations: 3.938 kB / 0.5181 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.3248, allocations: 0 / 0.5181 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.3248, allocations: 2.875 kB / 0.5181 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.469e-05/0.3248, allocations: 3.984 kB / 0.5181 GB, free: 34.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.3248, allocations: 0 / 0.5181 GB, free: 34.87 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.523e-05/0.3249, allocations: 141.6 kB / 0.5182 GB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.242e-06/0.3249, allocations: 0 / 0.5182 GB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.436e-06/0.3249, allocations: 14.66 kB / 0.5182 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.3249, allocations: 3.938 kB / 0.5182 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3249, allocations: 3.031 kB / 0.5182 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.3249, allocations: 0 / 0.5182 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.717e-05/0.325, allocations: 144.9 kB / 0.5184 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.325, allocations: 0 / 0.5184 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.753e-06/0.325, allocations: 6.812 kB / 0.5184 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.325, allocations: 4 kB / 0.5184 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.325, allocations: 3.938 kB / 0.5184 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.325, allocations: 3.938 kB / 0.5184 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.325, allocations: 0 / 0.5184 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.218e-05/0.3251, allocations: 89.59 kB / 0.5185 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.484e-05/0.3251, allocations: 77.11 kB / 0.5185 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.3251, allocations: 9.797 kB / 0.5185 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.117e-06/0.3251, allocations: 32 / 0.5185 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.588e-06/0.3251, allocations: 4 kB / 0.5185 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-06/0.3252, allocations: 6.672 kB / 0.5186 GB, free: 34.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.164e-05/0.3252, allocations: 75.28 kB / 0.5186 GB, free: 34.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3252, allocations: 0 / 0.5186 GB, free: 34.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002114/0.3254, allocations: 24.03 kB / 0.5186 GB, free: 34.22 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 (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.0004205/0.3258, allocations: 274.7 kB / 0.5189 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.706e-05/0.3259, allocations: 57.53 kB / 0.519 GB, free: 34.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3259, allocations: 4.062 kB / 0.519 GB, free: 34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.778e-05/0.3259, allocations: 61.66 kB / 0.519 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.3261, allocations: 3.062 kB / 0.519 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001282/0.3262, allocations: 99.03 kB / 0.5191 GB, free: 33.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.851e-05/0.3263, allocations: 0.6726 MB / 0.5198 GB, free: 33.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.613e-06/0.3263, allocations: 7.438 kB / 0.5198 GB, free: 33.11 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3263, allocations: 0 / 0.5198 GB, free: 33.11 MB / 378.7 MB Notification: Performance of Templates: time 0.001874/0.3282, allocations: 0.9581 MB / 0.5207 GB, free: 33 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches