Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 106.2 kB / 18.4 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 184.3 kB / 19.33 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.272/1.272, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 51.94 kB / 329.2 MB, free: 3.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07216/0.07343, allocations: 46.62 MB / 375.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001423/0.07488, allocations: 494.5 kB / 376.3 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002257/0.07513, allocations: 55.8 kB / 376.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.582e-05/0.07516, allocations: 0 / 376.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.42e-05/0.07521, allocations: 4 kB / 376.3 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.653e-05/0.07527, allocations: 11.98 kB / 376.3 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001521/0.07543, allocations: 23.91 kB / 376.4 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.953e-05/0.07553, allocations: 31.91 kB / 376.4 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.772e-05/0.07557, allocations: 0 / 376.4 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.849e-05/0.07561, allocations: 15.98 kB / 376.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.754e-05/0.07568, allocations: 23.97 kB / 376.4 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.0757, allocations: 4 kB / 376.4 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.8e-05/0.07575, allocations: 4 kB / 376.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.803e-05/0.07579, allocations: 7.938 kB / 376.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.925e-05/0.07582, allocations: 11.92 kB / 376.5 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.713e-05/0.07592, allocations: 31.84 kB / 376.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.07593, allocations: 0 / 376.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.07593, allocations: 0 / 376.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.07594, allocations: 0 / 376.5 MB, free: 3.91 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003131/0.07626, allocations: 369.1 kB / 376.9 MB, free: 3.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.0763, allocations: 8.031 kB / 376.9 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.17e-05/0.07635, allocations: 4.938 kB / 376.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.825e-05/0.07645, allocations: 168.2 kB / 377 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.07647, allocations: 384 / 377 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.07649, allocations: 4.375 kB / 377 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.0766, allocations: 62.23 kB / 377.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-06/0.07661, allocations: 192 / 377.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.07663, allocations: 7.938 kB / 377.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.07664, allocations: 4 kB / 377.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.782e-05/0.07668, allocations: 27.98 kB / 377.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000125/0.07681, allocations: 153.7 kB / 377.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.168e-05/0.07688, allocations: 54.48 kB / 377.3 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.687e-05/0.07692, allocations: 32.92 kB / 377.4 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-06/0.07694, allocations: 0 / 377.4 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.07698, allocations: 60.27 kB / 377.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.07699, allocations: 4 kB / 377.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002477/0.07724, allocations: 183.3 kB / 377.6 MB, free: 2.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.07729, allocations: 81.11 kB / 377.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.163e-05/0.07738, allocations: 121.7 kB / 377.8 MB, free: 2.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.0774, allocations: 25.7 kB / 377.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.616e-05/0.07744, allocations: 84.12 kB / 377.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.07746, allocations: 7.906 kB / 377.9 MB, free: 2.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.0775, allocations: 17.72 kB / 377.9 MB, free: 2.227 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.117e-05/0.0776, allocations: 322.8 kB / 378.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.701e-05/0.07764, allocations: 27.98 kB / 378.3 MB, free: 1.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.055e-05/0.07768, allocations: 27.98 kB / 378.3 MB, free: 1.848 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.07779, allocations: 116.2 kB / 378.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.0778, allocations: 0 / 378.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001732/0.07798, allocations: 151.6 kB / 378.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.456e-05/0.07803, allocations: 37.69 kB / 378.6 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.07804, allocations: 0 / 378.6 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.07807, allocations: 7.938 kB / 378.6 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.07808, allocations: 8 kB / 378.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.07809, allocations: 0 / 378.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.27e-05/0.07812, allocations: 0 / 378.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.07813, allocations: 4 kB / 378.6 MB, free: 1.496 MB / 318.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: 4 (success4,success3,success2,success1) * 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 0.0001013/0.07824, allocations: 143.5 kB / 378.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.07826, allocations: 7.938 kB / 378.8 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.643e-05/0.07828, allocations: 7.844 kB / 378.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.07829, allocations: 0 / 378.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.0783, allocations: 0 / 378.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.362e-05/0.07833, allocations: 92.95 kB / 378.9 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.07836, allocations: 4 kB / 378.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.575e-05/0.07838, allocations: 7.984 kB / 378.9 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.368e-05/0.0784, allocations: 0 / 378.9 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002034/0.0786, allocations: 294 kB / 379.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002167/0.07883, allocations: 344.4 kB / 379.5 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.668e-05/0.07889, allocations: 40.17 kB / 379.6 MB, free: 500 kB / 318.1 MB Notification: Performance of sorting global known variables: time 4.297e-05/0.07894, allocations: 95.33 kB / 379.6 MB, free: 404 kB / 318.1 MB Notification: Performance of Backend: time 3.51e-07/0.07895, allocations: 0 / 379.6 MB, free: 404 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004871/0.07944, allocations: 201.5 kB / 379.8 MB, free: 188 kB / 318.1 MB Notification: Performance of SimCode: time 0.1395/0.219, allocations: 0.6151 MB / 380.5 MB, free: 12.53 MB / 318.1 MB Notification: Performance of Templates: time 0.002686/0.2217, allocations: 0.6996 MB / 381.2 MB, free: 12.5 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches