Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001069/0.001069, allocations: 111.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2119/0.2119, allocations: 46.1 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 79.81 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3068, allocations: 62.43 MB / 0.5316 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001475/0.3083, allocations: 494.7 kB / 0.5321 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.3104, allocations: 1.608 MB / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.752e-05/0.3104, allocations: 0 / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.893e-05/0.3104, allocations: 7.938 kB / 0.5337 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.873e-06/0.3105, allocations: 0 / 0.5337 GB, free: 11.94 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008988/0.3114, allocations: 261.8 kB / 0.5339 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.51e-05/0.3114, allocations: 5.375 kB / 0.534 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.587e-05/0.3115, allocations: 5.359 kB / 0.534 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.567e-05/0.3115, allocations: 0 / 0.534 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.026e-05/0.3115, allocations: 1.375 kB / 0.534 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-06/0.3116, allocations: 4 kB / 0.534 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007345/0.3123, allocations: 0.4909 MB / 0.5344 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.293e-06/0.3123, allocations: 0 / 0.5344 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.993e-05/0.3123, allocations: 1.25 kB / 0.5344 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004376/0.3128, allocations: 312.7 kB / 0.5347 GB, free: 11.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3128, allocations: 0 / 0.5347 GB, free: 11.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3128, allocations: 0 / 0.5347 GB, free: 11.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.3128, allocations: 0.6875 kB / 0.5347 GB, free: 11.38 MB / 398.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.0003678/0.3132, allocations: 372 kB / 0.5351 GB, free: 10.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3132, allocations: 9.156 kB / 0.5351 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.3133, allocations: 0.9375 kB / 0.5351 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.907e-05/0.3134, allocations: 165.8 kB / 0.5353 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.3134, allocations: 384 / 0.5353 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-06/0.3134, allocations: 1.594 kB / 0.5353 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.314e-05/0.3135, allocations: 40.84 kB / 0.5353 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.3135, allocations: 0 / 0.5353 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-06/0.3135, allocations: 4 kB / 0.5353 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3135, allocations: 0 / 0.5353 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.585e-05/0.3136, allocations: 6.5 kB / 0.5353 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001279/0.3137, allocations: 143.1 kB / 0.5355 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.418e-05/0.3137, allocations: 19.62 kB / 0.5355 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.39e-05/0.3138, allocations: 6.047 kB / 0.5355 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.3138, allocations: 1.062 kB / 0.5355 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.991e-05/0.3139, allocations: 69.58 kB / 0.5355 GB, free: 10.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3139, allocations: 0 / 0.5355 GB, free: 10.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001557/0.314, allocations: 67.17 kB / 0.5356 GB, free: 10.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.3141, allocations: 77.11 kB / 0.5357 GB, free: 10.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.458e-05/0.3141, allocations: 93.8 kB / 0.5358 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.3142, allocations: 27.05 kB / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.894e-05/0.3142, allocations: 80.14 kB / 0.5359 GB, free: 10.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.3142, allocations: 9.281 kB / 0.5359 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.3143, allocations: 19.06 kB / 0.5359 GB, free: 10.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.3144, allocations: 312.2 kB / 0.5362 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-06/0.3144, allocations: 0 / 0.5362 GB, free: 9.699 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-06/0.3144, allocations: 1.188 kB / 0.5362 GB, free: 9.699 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.687e-05/0.3145, allocations: 64.09 kB / 0.5363 GB, free: 9.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3145, allocations: 0 / 0.5363 GB, free: 9.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.279e-05/0.3145, allocations: 66.22 kB / 0.5363 GB, free: 9.555 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.3146, allocations: 31.2 kB / 0.5364 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3146, allocations: 9.406 kB / 0.5364 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3146, allocations: 4 kB / 0.5364 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.3146, allocations: 0 / 0.5364 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.3146, allocations: 1.375 kB / 0.5364 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.683e-05/0.3146, allocations: 4 kB / 0.5364 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.3147, allocations: 5.359 kB / 0.5364 GB, free: 9.504 MB / 398.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 7.992e-05/0.3147, allocations: 136.9 kB / 0.5365 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.3148, allocations: 1.375 kB / 0.5365 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.032e-05/0.3148, allocations: 7.062 kB / 0.5365 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3148, allocations: 5.375 kB / 0.5365 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3148, allocations: 0 / 0.5365 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.86e-05/0.3148, allocations: 77.11 kB / 0.5366 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.3148, allocations: 1.375 kB / 0.5366 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.586e-06/0.3149, allocations: 1.375 kB / 0.5366 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.455e-05/0.3149, allocations: 3.984 kB / 0.5366 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000119/0.315, allocations: 199.6 kB / 0.5368 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001472/0.3152, allocations: 243.5 kB / 0.537 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.609e-05/0.3152, allocations: 2.75 kB / 0.537 GB, free: 8.789 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.593e-05/0.3152, allocations: 75.28 kB / 0.5371 GB, free: 8.715 MB / 398.1 MB Notification: Performance of Backend: time 2.7e-07/0.3152, allocations: 0 / 0.5371 GB, free: 8.715 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006933/0.3159, allocations: 242.8 kB / 0.5373 GB, free: 8.523 MB / 398.1 MB Notification: Performance of SimCode: time 0.000372/0.3163, allocations: 0.5745 MB / 0.5379 GB, free: 7.895 MB / 398.1 MB Notification: Performance of Templates: time 0.004346/0.3207, allocations: 1.301 MB / 0.5392 GB, free: 7.227 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches