Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b") translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009284/0.0009282, allocations: 200.8 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007105/0.0007105, allocations: 101.3 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1859/0.1859, allocations: 44.84 MB / 392 MB, free: 9.324 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003412, allocations: 4 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 62.96 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.000537/0.1059, allocations: 220.6 kB / 0.5155 GB, free: 2.562 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002788/0.1087, allocations: 2.047 MB / 0.5175 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.698e-05/0.1088, allocations: 0 / 0.5175 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.648e-06/0.1088, allocations: 0 / 0.5175 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.442e-06/0.1088, allocations: 4 kB / 0.5175 GB, free: 0.4922 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:485:3-574:17:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices2b‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.2003/0.3091, allocations: 0.6257 MB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.698e-05/0.3092, allocations: 1.688 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.711e-05/0.3093, allocations: 1.625 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.103e-05/0.3093, allocations: 1.219 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.083e-05/0.3093, allocations: 3.719 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.254e-06/0.3093, allocations: 2.625 kB / 0.5181 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002748/0.3121, allocations: 1.345 MB / 0.5195 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-06/0.3121, allocations: 3.219 kB / 0.5195 GB, free: 9.879 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.358e-05/0.3121, allocations: 29.14 kB / 0.5195 GB, free: 9.848 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001966/0.3141, allocations: 1.145 MB / 0.5206 GB, free: 9.848 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3141, allocations: 1.312 kB / 0.5206 GB, free: 9.848 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3141, allocations: 0 / 0.5206 GB, free: 9.848 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.3142, allocations: 0 / 0.5206 GB, free: 9.848 MB / 346.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.001079/0.3152, allocations: 411.1 kB / 0.521 GB, free: 9.438 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3153, allocations: 13.45 kB / 0.521 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.952e-05/0.3153, allocations: 1.797 kB / 0.521 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.105e-05/0.3154, allocations: 166.6 kB / 0.5212 GB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.3154, allocations: 0.5625 kB / 0.5212 GB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.3154, allocations: 1.812 kB / 0.5212 GB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.173e-05/0.3155, allocations: 32.94 kB / 0.5212 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.3155, allocations: 0 / 0.5212 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-06/0.3155, allocations: 0.7188 kB / 0.5212 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.3155, allocations: 0 / 0.5212 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.741e-05/0.3155, allocations: 5 kB / 0.5212 GB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.81e-05/0.3156, allocations: 150.2 kB / 0.5214 GB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.344e-05/0.3157, allocations: 29.75 kB / 0.5214 GB, free: 8.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.358e-05/0.3157, allocations: 8.75 kB / 0.5214 GB, free: 8.977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.703e-06/0.3157, allocations: 0 / 0.5214 GB, free: 8.977 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.3157, allocations: 58.98 kB / 0.5215 GB, free: 8.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3158, allocations: 0 / 0.5215 GB, free: 8.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001451/0.3159, allocations: 66.5 kB / 0.5215 GB, free: 8.844 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/0.3159, allocations: 78.23 kB / 0.5216 GB, free: 8.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.932e-05/0.316, allocations: 91.2 kB / 0.5217 GB, free: 8.652 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.791e-06/0.316, allocations: 30.98 kB / 0.5217 GB, free: 8.617 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.649e-06/0.316, allocations: 80.64 kB / 0.5218 GB, free: 8.535 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.748e-05/0.316, allocations: 1.469 kB / 0.5218 GB, free: 8.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-06/0.316, allocations: 0.75 kB / 0.5218 GB, free: 8.535 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.391e-05/0.3161, allocations: 312.1 kB / 0.5221 GB, free: 8.223 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.935e-06/0.3161, allocations: 1.859 kB / 0.5221 GB, free: 8.223 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.568e-06/0.3161, allocations: 3.531 kB / 0.5221 GB, free: 8.223 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.566e-05/0.3161, allocations: 28.38 kB / 0.5221 GB, free: 8.191 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3161, allocations: 4.062 kB / 0.5221 GB, free: 8.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.061e-05/0.3162, allocations: 66.88 kB / 0.5222 GB, free: 8.121 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.3162, allocations: 32.19 kB / 0.5222 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.3162, allocations: 0.5625 kB / 0.5222 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.3163, allocations: 2.062 kB / 0.5222 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.3163, allocations: 1.406 kB / 0.5222 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3163, allocations: 1.453 kB / 0.5222 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.849e-05/0.3163, allocations: 0.625 kB / 0.5222 GB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.3163, allocations: 2.766 kB / 0.5222 GB, free: 8.09 MB / 346.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.62e-05/0.3164, allocations: 142.8 kB / 0.5224 GB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-06/0.3164, allocations: 4.828 kB / 0.5224 GB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.377e-06/0.3164, allocations: 3.641 kB / 0.5224 GB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.3164, allocations: 1.062 kB / 0.5224 GB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3164, allocations: 1.781 kB / 0.5224 GB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3164, allocations: 0 / 0.5224 GB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.35e-05/0.3165, allocations: 148.5 kB / 0.5225 GB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3165, allocations: 0 / 0.5225 GB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.873e-06/0.3165, allocations: 1.531 kB / 0.5225 GB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3165, allocations: 5.141 kB / 0.5225 GB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.3165, allocations: 4.5 kB / 0.5225 GB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3165, allocations: 5.75 kB / 0.5225 GB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3165, allocations: 1.219 kB / 0.5225 GB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.623e-05/0.3166, allocations: 93.19 kB / 0.5226 GB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.687e-05/0.3167, allocations: 83.56 kB / 0.5227 GB, free: 7.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.3167, allocations: 6.609 kB / 0.5227 GB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.111e-05/0.3167, allocations: 1.219 kB / 0.5227 GB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.761e-05/0.3167, allocations: 7.109 kB / 0.5227 GB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.3167, allocations: 0 / 0.5227 GB, free: 7.535 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.081e-05/0.3167, allocations: 76.47 kB / 0.5228 GB, free: 7.461 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3167, allocations: 0 / 0.5228 GB, free: 7.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001782/0.3185, allocations: 276.7 kB / 0.5231 GB, free: 7.438 MB / 346.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.002397/0.3209, allocations: 407.3 kB / 0.5234 GB, free: 7.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.929e-05/0.321, allocations: 64.3 kB / 0.5235 GB, free: 7.258 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.321, allocations: 1.719 kB / 0.5235 GB, free: 7.258 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.822e-05/0.3211, allocations: 59.34 kB / 0.5236 GB, free: 7.191 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.3212, allocations: 3.188 kB / 0.5236 GB, free: 7.191 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001575/0.3214, allocations: 105.2 kB / 0.5237 GB, free: 7.066 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.827e-05/0.3215, allocations: 0.6714 MB / 0.5243 GB, free: 6.371 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.183e-05/0.3215, allocations: 9.5 kB / 0.5243 GB, free: 6.363 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3215, allocations: 0 / 0.5243 GB, free: 6.363 MB / 346.7 MB Notification: Performance of Templates: time 0.0137/0.3352, allocations: 6.752 MB / 0.5309 GB, free: 5.273 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2b/TestMatrices2b.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches