Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.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.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001373/0.001374, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.001379, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.4 MB / 247.5 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2307/0.2307, allocations: 46.12 MB / 344.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002155, allocations: 82.73 kB / 418.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1235, allocations: 62.46 MB / 480.8 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001847/0.1254, allocations: 483.8 kB / 481.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007745/0.1331, allocations: 4.871 MB / 486.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.203e-05/0.1332, allocations: 8 kB / 486.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.52e-05/0.1332, allocations: 0 / 486.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-06/0.1333, allocations: 3.938 kB / 486.1 MB, free: 15.89 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.007145/0.1404, allocations: 2.939 MB / 489.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.943e-05/0.1405, allocations: 4 kB / 489.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.54e-05/0.1406, allocations: 4 kB / 489.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.523e-05/0.1406, allocations: 0 / 489.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.705e-05/0.1406, allocations: 0 / 489.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-06/0.1406, allocations: 0 / 489.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02932/0.1699, allocations: 18.56 MB / 0.4957 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.425e-05/0.17, allocations: 4 kB / 0.4957 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.939e-05/0.1701, allocations: 0 / 0.4957 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2548/0.4249, allocations: 27.48 MB / 0.5226 GB, free: 27.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.425, allocations: 0 / 0.5226 GB, free: 27.19 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.425, allocations: 0 / 0.5226 GB, free: 27.19 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.425, allocations: 0 / 0.5226 GB, free: 27.19 MB / 382.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.01679/0.4418, allocations: 0.6505 MB / 0.5232 GB, free: 26.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4419, allocations: 10.59 kB / 0.5232 GB, free: 26.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.341e-05/0.4419, allocations: 0.9375 kB / 0.5232 GB, free: 26.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.435e-05/0.442, allocations: 168.1 kB / 0.5234 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.759e-06/0.442, allocations: 5.844 kB / 0.5234 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.442, allocations: 0 / 0.5234 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.425e-05/0.4421, allocations: 28.95 kB / 0.5234 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.4421, allocations: 0 / 0.5234 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.116e-06/0.4422, allocations: 5.281 kB / 0.5234 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.4422, allocations: 0 / 0.5234 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.006e-05/0.4422, allocations: 3.844 kB / 0.5234 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001048/0.4423, allocations: 147.6 kB / 0.5236 GB, free: 26.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.867e-05/0.4424, allocations: 25.84 kB / 0.5236 GB, free: 26.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.597e-05/0.4424, allocations: 4.859 kB / 0.5236 GB, free: 26.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.861e-06/0.4424, allocations: 1.359 kB / 0.5236 GB, free: 26.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.4424, allocations: 62.98 kB / 0.5236 GB, free: 26.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.4424, allocations: 0 / 0.5236 GB, free: 26.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001752/0.4426, allocations: 60.81 kB / 0.5237 GB, free: 26.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.4427, allocations: 84.34 kB / 0.5238 GB, free: 25.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.246e-05/0.4427, allocations: 91.83 kB / 0.5239 GB, free: 25.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.186e-06/0.4427, allocations: 25.7 kB / 0.5239 GB, free: 25.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.319e-05/0.4427, allocations: 87.16 kB / 0.524 GB, free: 25.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.4428, allocations: 1.094 kB / 0.524 GB, free: 25.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.266e-05/0.4428, allocations: 11 kB / 0.524 GB, free: 25.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.959e-05/0.4428, allocations: 318.8 kB / 0.5243 GB, free: 25.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.091e-05/0.4429, allocations: 4.562 kB / 0.5243 GB, free: 25.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.24e-06/0.4429, allocations: 3.094 kB / 0.5243 GB, free: 25.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.113e-05/0.4429, allocations: 64.86 kB / 0.5244 GB, free: 25.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.4429, allocations: 3.984 kB / 0.5244 GB, free: 25.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.127e-05/0.443, allocations: 63.5 kB / 0.5244 GB, free: 25.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.443, allocations: 36.55 kB / 0.5245 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.443, allocations: 0 / 0.5245 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.443, allocations: 3.719 kB / 0.5245 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.443, allocations: 0 / 0.5245 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.4431, allocations: 3.906 kB / 0.5245 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.659e-05/0.4431, allocations: 1.562 kB / 0.5245 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.4431, allocations: 0 / 0.5245 GB, free: 25.23 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.047e-05/0.4431, allocations: 143 kB / 0.5246 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-06/0.4432, allocations: 0 / 0.5246 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.041e-05/0.4432, allocations: 3.125 kB / 0.5246 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.4432, allocations: 1.75 kB / 0.5246 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.4432, allocations: 0 / 0.5246 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.4432, allocations: 0 / 0.5246 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.315e-05/0.4432, allocations: 157.4 kB / 0.5248 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.4432, allocations: 0 / 0.5248 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.4433, allocations: 3.344 kB / 0.5248 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.4433, allocations: 0 / 0.5248 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.4433, allocations: 0 / 0.5248 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.4433, allocations: 3 kB / 0.5248 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.4433, allocations: 3.469 kB / 0.5248 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.345e-05/0.4434, allocations: 101.1 kB / 0.5249 GB, free: 24.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.697e-05/0.4434, allocations: 78.86 kB / 0.5249 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.4434, allocations: 1.594 kB / 0.5249 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-06/0.4434, allocations: 0 / 0.5249 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.832e-05/0.4434, allocations: 1.375 kB / 0.5249 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.4434, allocations: 3.094 kB / 0.5249 GB, free: 24.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.229e-05/0.4435, allocations: 76.88 kB / 0.525 GB, free: 24.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4435, allocations: 0 / 0.525 GB, free: 24.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01899/0.4625, allocations: 3.777 MB / 0.5287 GB, free: 21.41 MB / 382.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 (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.03904/0.5015, allocations: 0.978 MB / 0.5297 GB, free: 20.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001305/0.5017, allocations: 59.39 kB / 0.5297 GB, free: 20.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5017, allocations: 0 / 0.5297 GB, free: 20.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.873e-05/0.5017, allocations: 55.41 kB / 0.5298 GB, free: 20.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001646/0.5019, allocations: 7.312 kB / 0.5298 GB, free: 20.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001943/0.5021, allocations: 102.4 kB / 0.5299 GB, free: 20.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.07e-05/0.5022, allocations: 0.6768 MB / 0.5305 GB, free: 19.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.007e-05/0.5022, allocations: 11.56 kB / 0.5306 GB, free: 19.57 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5022, allocations: 0 / 0.5306 GB, free: 19.57 MB / 382.1 MB Notification: Performance of Templates: time 0.1056/0.6078, allocations: 64.89 MB / 0.5939 GB, free: 2.602 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches