Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_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.001082/0.001086, allocations: 94.56 kB / 17.31 MB, free: 5.656 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.001502/0.001502, allocations: 179.9 kB / 18.21 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 223.3 MB / 242.3 MB, free: 14.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002791/0.0002791, allocations: 11.94 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1008, allocations: 50.41 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006328/0.1015, allocations: 214 kB / 352.7 MB, free: 3.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003589/0.1018, allocations: 59.86 kB / 352.8 MB, free: 3.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.68e-05/0.1019, allocations: 0 / 352.8 MB, free: 3.203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.997e-05/0.1019, allocations: 3.938 kB / 352.8 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.204e-05/0.102, allocations: 19.97 kB / 352.8 MB, free: 3.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001552/0.1022, allocations: 15.98 kB / 352.8 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.105e-05/0.1023, allocations: 15.97 kB / 352.8 MB, free: 3.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.048e-05/0.1023, allocations: 8 kB / 352.8 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.151e-05/0.1024, allocations: 7.984 kB / 352.8 MB, free: 3.133 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.402e-05/0.1025, allocations: 31.86 kB / 352.9 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.1025, allocations: 0 / 352.9 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.402e-05/0.1025, allocations: 4 kB / 352.9 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.1026, allocations: 11.97 kB / 352.9 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.845e-05/0.1026, allocations: 37.64 kB / 352.9 MB, free: 3.043 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.901e-05/0.1027, allocations: 11.98 kB / 352.9 MB, free: 3.031 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1027, allocations: 0 / 352.9 MB, free: 3.031 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1028, allocations: 4 kB / 352.9 MB, free: 3.027 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.457e-06/0.1028, allocations: 0 / 352.9 MB, free: 3.027 MB / 286.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.0003562/0.1031, allocations: 361.2 kB / 353.3 MB, free: 2.617 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.1032, allocations: 8.031 kB / 353.3 MB, free: 2.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.562e-05/0.1032, allocations: 0.9375 kB / 353.3 MB, free: 2.609 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.1033, allocations: 176.5 kB / 353.5 MB, free: 2.398 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.1034, allocations: 384 / 353.5 MB, free: 2.398 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.1034, allocations: 8.312 kB / 353.5 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.1035, allocations: 58.23 kB / 353.5 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1035, allocations: 192 / 353.5 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.1036, allocations: 7.938 kB / 353.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1036, allocations: 0 / 353.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.39e-05/0.1036, allocations: 31.98 kB / 353.6 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.1038, allocations: 153.7 kB / 353.7 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.52e-05/0.1039, allocations: 50.55 kB / 353.8 MB, free: 2.031 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.266e-05/0.1039, allocations: 32.92 kB / 353.8 MB, free: 1.996 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.23e-06/0.1039, allocations: 0 / 353.8 MB, free: 1.996 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.197e-05/0.104, allocations: 68.25 kB / 353.9 MB, free: 1.914 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.393e-06/0.104, allocations: 0 / 353.9 MB, free: 1.914 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003024/0.1043, allocations: 191.2 kB / 354 MB, free: 1.715 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/0.1044, allocations: 81.05 kB / 354.1 MB, free: 1.617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.851e-05/0.1045, allocations: 117.8 kB / 354.2 MB, free: 1.492 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.1045, allocations: 25.7 kB / 354.3 MB, free: 1.461 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.1046, allocations: 84.12 kB / 354.3 MB, free: 1.375 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.1047, allocations: 7.906 kB / 354.4 MB, free: 1.367 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.872e-05/0.1047, allocations: 13.72 kB / 354.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1049, allocations: 318.8 kB / 354.7 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.219e-05/0.1049, allocations: 28.02 kB / 354.7 MB, free: 1 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.225e-05/0.1049, allocations: 31.98 kB / 354.7 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.1051, allocations: 116.2 kB / 354.8 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1051, allocations: 0 / 354.8 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001699/0.1053, allocations: 147.4 kB / 355 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.061e-05/0.1053, allocations: 45.62 kB / 355 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1053, allocations: 3.938 kB / 355 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1054, allocations: 0 / 355 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.412e-06/0.1054, allocations: 3.938 kB / 355 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1054, allocations: 0 / 355 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.082e-05/0.1054, allocations: 4.062 kB / 355 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.1054, allocations: 4 kB / 355.1 MB, free: 0.6172 MB / 286.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.0001166/0.1055, allocations: 143.5 kB / 355.2 MB, free: 472 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.479e-05/0.1056, allocations: 7.906 kB / 355.2 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.821e-05/0.1056, allocations: 8.031 kB / 355.2 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1056, allocations: 0 / 355.2 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.1056, allocations: 7.922 kB / 355.2 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.1056, allocations: 4 kB / 355.2 MB, free: 436 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.1057, allocations: 157.7 kB / 355.4 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1057, allocations: 4 kB / 355.4 MB, free: 224 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1057, allocations: 0 / 355.4 MB, free: 224 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.1058, allocations: 4 kB / 355.4 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.1058, allocations: 3.938 kB / 355.4 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.1058, allocations: 0 / 355.4 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1058, allocations: 0 / 355.4 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.106, allocations: 198.8 kB / 355.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-05/0.1061, allocations: 84.95 kB / 355.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.1061, allocations: 3.969 kB / 355.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.516e-05/0.1061, allocations: 8 kB / 355.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.723e-05/0.1061, allocations: 4 kB / 355.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.1061, allocations: 4.25 kB / 355.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.474e-05/0.1062, allocations: 91.27 kB / 355.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1062, allocations: 0 / 355.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001891/0.1064, allocations: 8 kB / 355.8 MB, free: 15.77 MB / 302.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: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * 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.0003087/0.1067, allocations: 135.8 kB / 355.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002569/0.107, allocations: 123.4 kB / 356 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.107, allocations: 0 / 356 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.645e-05/0.1071, allocations: 95.39 kB / 356.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.1072, allocations: 4 kB / 356.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003098/0.1076, allocations: 180.7 kB / 356.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.108, allocations: 0.6847 MB / 357 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.294e-05/0.108, allocations: 7.438 kB / 357 MB, free: 14.47 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.108, allocations: 0 / 357 MB, free: 14.47 MB / 302.1 MB Notification: Performance of Templates: time 0.002604/0.1106, allocations: 0.6714 MB / 357.7 MB, free: 13.81 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches