Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.006469/0.006469, allocations: 109.1 kB / 21.98 MB, free: 5.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001879/0.001879, allocations: 220.3 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 259 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 64.77 kB / 379.8 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2744, allocations: 53.37 MB / 433.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001844/0.2762, allocations: 485.8 kB / 433.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003326/0.2766, allocations: 67.78 kB / 433.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.234e-05/0.2766, allocations: 3.938 kB / 433.7 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.165e-05/0.2767, allocations: 0 / 433.7 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.374e-05/0.2767, allocations: 11.98 kB / 433.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.2769, allocations: 23.91 kB / 433.7 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000123/0.2771, allocations: 19.98 kB / 433.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.311e-05/0.2771, allocations: 0 / 433.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.616e-05/0.2772, allocations: 11.98 kB / 433.8 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.314e-05/0.2772, allocations: 27.91 kB / 433.8 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.2773, allocations: 0 / 433.8 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.98e-05/0.2773, allocations: 15.98 kB / 433.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.151e-05/0.2773, allocations: 7.125 kB / 433.8 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.388e-05/0.2774, allocations: 7.938 kB / 433.8 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.2775, allocations: 27.91 kB / 433.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2775, allocations: 0 / 433.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.2775, allocations: 0 / 433.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.2775, allocations: 0 / 433.8 MB, free: 6.266 MB / 334.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.0004443/0.278, allocations: 289.3 kB / 434.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.278, allocations: 8.031 kB / 434.1 MB, free: 5.941 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.2781, allocations: 8.891 kB / 434.1 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.2782, allocations: 122.5 kB / 434.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.2782, allocations: 384 / 434.3 MB, free: 5.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/0.2782, allocations: 8.312 kB / 434.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001391/0.2784, allocations: 58.19 kB / 434.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.2784, allocations: 192 / 434.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.2784, allocations: 3.938 kB / 434.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.2784, allocations: 4 kB / 434.3 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.496e-05/0.2785, allocations: 27.98 kB / 434.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001824/0.2786, allocations: 128.8 kB / 434.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.593e-05/0.2787, allocations: 42.61 kB / 434.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.941e-05/0.2788, allocations: 36.86 kB / 434.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-06/0.2788, allocations: 0 / 434.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.448e-05/0.2788, allocations: 60.27 kB / 434.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.51e-07/0.2788, allocations: 0 / 434.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003523/0.2792, allocations: 195.2 kB / 434.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.641e-05/0.2793, allocations: 77.11 kB / 434.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.2794, allocations: 113.9 kB / 435 MB, free: 4.934 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.2794, allocations: 29.7 kB / 435 MB, free: 4.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.2795, allocations: 88.06 kB / 435.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.617e-05/0.2795, allocations: 7.953 kB / 435.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.2795, allocations: 17.72 kB / 435.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.2797, allocations: 318.8 kB / 435.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.329e-05/0.2797, allocations: 31.92 kB / 435.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.219e-05/0.2798, allocations: 23.98 kB / 435.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.2799, allocations: 116.3 kB / 435.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2799, allocations: 7.984 kB / 435.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001829/0.2801, allocations: 151.4 kB / 435.8 MB, free: 4.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.968e-05/0.2801, allocations: 29.7 kB / 435.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2801, allocations: 3.938 kB / 435.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.2801, allocations: 4 kB / 435.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.2801, allocations: 0 / 435.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.2802, allocations: 0 / 435.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.007e-05/0.2802, allocations: 3.953 kB / 435.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.2802, allocations: 4 kB / 435.8 MB, free: 4.055 MB / 334.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.0001143/0.2803, allocations: 159.5 kB / 436 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.2803, allocations: 4 kB / 436 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.999e-05/0.2803, allocations: 11.92 kB / 436 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.2803, allocations: 0 / 436 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2803, allocations: 0 / 436 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2803, allocations: 4.375 kB / 436 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.2805, allocations: 132.7 kB / 436.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2805, allocations: 4 kB / 436.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-07/0.2805, allocations: 0 / 436.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2805, allocations: 7.984 kB / 436.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.2805, allocations: 7.938 kB / 436.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.2805, allocations: 0 / 436.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2805, allocations: 0 / 436.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.2807, allocations: 198.7 kB / 436.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-06/0.2807, allocations: 0 / 436.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.2808, allocations: 7.938 kB / 436.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.109e-05/0.2808, allocations: 0 / 436.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.2808, allocations: 8.016 kB / 436.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.2808, allocations: 11.94 kB / 436.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.151e-05/0.2808, allocations: 83.28 kB / 436.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2808, allocations: 0 / 436.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000191/0.281, allocations: 8 kB / 436.5 MB, free: 3.328 MB / 334.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.0003518/0.2814, allocations: 130.3 kB / 436.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001795/0.2816, allocations: 123.4 kB / 436.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2816, allocations: 0 / 436.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.2817, allocations: 87.38 kB / 436.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.2819, allocations: 10.75 kB / 436.8 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000299/0.2822, allocations: 162.6 kB / 437 MB, free: 2.777 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.2825, allocations: 0.6807 MB / 437.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.597e-05/0.2825, allocations: 7.438 kB / 437.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2825, allocations: 4.125 kB / 437.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of Templates: time 0.002622/0.2852, allocations: 0.688 MB / 438.3 MB, free: 1.375 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.898769892053679]