Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.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.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors") translateModel(ModelicaTest.Math.TestVectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 226.5 MB / 243.4 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007452/0.0007452, allocations: 95.36 kB / 295.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2762/0.2762, allocations: 44.81 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002897/0.0002897, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2771, allocations: 62.97 MB / 0.5159 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.0005791/0.2778, allocations: 217.7 kB / 0.5161 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.2788, allocations: 0.722 MB / 0.5168 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.669e-05/0.2789, allocations: 0 / 0.5168 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.423e-05/0.2789, allocations: 0 / 0.5168 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.484e-06/0.2789, allocations: 0 / 0.5168 GB, free: 36.54 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:612:3-661:14:writable] Warning: Pure function ‘ModelicaTest.Math.Vectors‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001293/0.2802, allocations: 0.5482 MB / 0.5173 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.113e-05/0.2802, allocations: 2.688 kB / 0.5173 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.162e-05/0.2803, allocations: 8 kB / 0.5173 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.452e-05/0.2803, allocations: 0 / 0.5173 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.818e-05/0.2803, allocations: 3.984 kB / 0.5173 GB, free: 36.22 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.2803, allocations: 6.625 kB / 0.5173 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004777/0.2808, allocations: 360.2 kB / 0.5177 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.123e-06/0.2808, allocations: 0 / 0.5177 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.967e-05/0.2809, allocations: 32.55 kB / 0.5177 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.2811, allocations: 241.9 kB / 0.5179 GB, free: 36.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2812, allocations: 0 / 0.5179 GB, free: 36.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2812, allocations: 0 / 0.5179 GB, free: 36.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.2812, allocations: 4 kB / 0.518 GB, free: 36.03 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.0002682/0.2814, allocations: 390.9 kB / 0.5183 GB, free: 35.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.2815, allocations: 8.688 kB / 0.5183 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.811e-05/0.2815, allocations: 0.9375 kB / 0.5183 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.561e-05/0.2816, allocations: 163.4 kB / 0.5185 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.2816, allocations: 384 / 0.5185 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/0.2816, allocations: 384 / 0.5185 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.918e-05/0.2817, allocations: 32.64 kB / 0.5185 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.2817, allocations: 192 / 0.5185 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.2817, allocations: 11.88 kB / 0.5185 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2817, allocations: 3.938 kB / 0.5185 GB, free: 35.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.627e-05/0.2818, allocations: 3.062 kB / 0.5185 GB, free: 35.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.207e-05/0.2818, allocations: 149 kB / 0.5187 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.859e-05/0.2819, allocations: 17.36 kB / 0.5187 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.193e-05/0.2819, allocations: 4.859 kB / 0.5187 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.2819, allocations: 3.938 kB / 0.5187 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.2819, allocations: 63.05 kB / 0.5188 GB, free: 35.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.282, allocations: 0 / 0.5188 GB, free: 35.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001401/0.2821, allocations: 71.97 kB / 0.5188 GB, free: 35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.2821, allocations: 79.77 kB / 0.5189 GB, free: 34.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.579e-05/0.2822, allocations: 89.86 kB / 0.519 GB, free: 34.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.264e-06/0.2822, allocations: 25.7 kB / 0.519 GB, free: 34.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.201e-05/0.2822, allocations: 80.14 kB / 0.5191 GB, free: 34.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.2822, allocations: 2.656 kB / 0.5191 GB, free: 34.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.863e-06/0.2822, allocations: 4.125 kB / 0.5191 GB, free: 34.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.188e-05/0.2823, allocations: 310.8 kB / 0.5194 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.263e-06/0.2823, allocations: 0 / 0.5194 GB, free: 34.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-06/0.2823, allocations: 5.578 kB / 0.5194 GB, free: 34.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.283e-05/0.2824, allocations: 66.61 kB / 0.5195 GB, free: 34.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.2824, allocations: 0 / 0.5195 GB, free: 34.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.682e-05/0.2824, allocations: 57.06 kB / 0.5195 GB, free: 34.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.2824, allocations: 39.06 kB / 0.5196 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2825, allocations: 4.094 kB / 0.5196 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.2825, allocations: 3.938 kB / 0.5196 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.2825, allocations: 0 / 0.5196 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.2825, allocations: 0 / 0.5196 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.486e-05/0.2825, allocations: 2.906 kB / 0.5196 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-06/0.2825, allocations: 0 / 0.5196 GB, free: 34.2 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 5.61e-05/0.2826, allocations: 134.6 kB / 0.5197 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-06/0.2826, allocations: 0 / 0.5197 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.668e-06/0.2826, allocations: 14.39 kB / 0.5197 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.2826, allocations: 7.984 kB / 0.5197 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.2826, allocations: 0 / 0.5197 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.2826, allocations: 2.562 kB / 0.5197 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.067e-05/0.2827, allocations: 141.7 kB / 0.5199 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2827, allocations: 3.281 kB / 0.5199 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.2827, allocations: 2.625 kB / 0.5199 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.2827, allocations: 0 / 0.5199 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.211e-06/0.2827, allocations: 3.938 kB / 0.5199 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2827, allocations: 0 / 0.5199 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.2827, allocations: 7.938 kB / 0.5199 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.306e-05/0.2828, allocations: 105.1 kB / 0.52 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.618e-05/0.2828, allocations: 77.11 kB / 0.52 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.2828, allocations: 6.969 kB / 0.5201 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-06/0.2828, allocations: 0 / 0.5201 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.323e-05/0.2829, allocations: 0 / 0.5201 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.2829, allocations: 3 kB / 0.5201 GB, free: 33.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.3e-05/0.2829, allocations: 75.28 kB / 0.5201 GB, free: 33.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2829, allocations: 4.031 kB / 0.5201 GB, free: 33.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003254/0.2832, allocations: 82.17 kB / 0.5202 GB, free: 33.53 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.0004681/0.2837, allocations: 211.8 kB / 0.5204 GB, free: 33.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.663e-05/0.2838, allocations: 61.7 kB / 0.5205 GB, free: 33.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2838, allocations: 0 / 0.5205 GB, free: 33.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.691e-05/0.2838, allocations: 54.56 kB / 0.5205 GB, free: 33.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001178/0.2839, allocations: 3 kB / 0.5205 GB, free: 33.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001494/0.2841, allocations: 105.4 kB / 0.5206 GB, free: 33.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.2842, allocations: 0.6795 MB / 0.5213 GB, free: 32.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.304e-06/0.2842, allocations: 7.438 kB / 0.5213 GB, free: 32.44 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2842, allocations: 0 / 0.5213 GB, free: 32.44 MB / 378.7 MB Notification: Performance of Templates: time 0.003/0.2872, allocations: 1.77 MB / 0.523 GB, free: 32.28 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestVectors/TestVectors.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestVectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches