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.001111/0.00111, allocations: 110 kB / 17.68 MB, free: 5.332 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.001173/0.001173, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.329/1.329, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009986/0.0009988, allocations: 41.39 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08644/0.08746, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001757/0.08925, allocations: 485.6 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002631/0.08952, allocations: 59.73 kB / 352 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.335e-05/0.08957, allocations: 0 / 352 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.941e-05/0.08961, allocations: 4 kB / 352 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.806e-05/0.08969, allocations: 15.97 kB / 352 MB, free: 3.148 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001372/0.08983, allocations: 19.92 kB / 352.1 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.432e-05/0.08992, allocations: 19.98 kB / 352.1 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.836e-05/0.08997, allocations: 4 kB / 352.1 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.668e-05/0.09, allocations: 15.97 kB / 352.1 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.93e-05/0.09006, allocations: 27.92 kB / 352.1 MB, free: 3.062 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.09008, allocations: 0 / 352.1 MB, free: 3.062 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.037e-05/0.09013, allocations: 11.98 kB / 352.1 MB, free: 3.051 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.733e-05/0.09017, allocations: 4 kB / 352.1 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.936e-05/0.0902, allocations: 15.92 kB / 352.2 MB, free: 3.031 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.605e-05/0.09029, allocations: 23.92 kB / 352.2 MB, free: 3.008 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09031, allocations: 0 / 352.2 MB, free: 3.008 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.09031, allocations: 0 / 352.2 MB, free: 3.008 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.09032, allocations: 0 / 352.2 MB, free: 3.008 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.0003079/0.09063, allocations: 361.2 kB / 352.5 MB, free: 2.598 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.09067, allocations: 8.031 kB / 352.5 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.03e-05/0.0907, allocations: 8.844 kB / 352.5 MB, free: 2.582 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.09081, allocations: 172.3 kB / 352.7 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.09083, allocations: 8.375 kB / 352.7 MB, free: 2.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.09084, allocations: 4.312 kB / 352.7 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.09095, allocations: 54.25 kB / 352.8 MB, free: 2.305 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.09096, allocations: 192 / 352.8 MB, free: 2.305 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.09098, allocations: 19.92 kB / 352.8 MB, free: 2.285 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.09099, allocations: 7.875 kB / 352.8 MB, free: 2.277 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.6e-05/0.09103, allocations: 23.98 kB / 352.8 MB, free: 2.254 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001191/0.09116, allocations: 157.7 kB / 353 MB, free: 2.051 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.719e-05/0.09123, allocations: 50.61 kB / 353 MB, free: 1.992 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.574e-05/0.09127, allocations: 32.86 kB / 353.1 MB, free: 1.957 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.09129, allocations: 4 kB / 353.1 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/0.09133, allocations: 60.25 kB / 353.1 MB, free: 1.879 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.09134, allocations: 0 / 353.1 MB, free: 1.879 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002685/0.09161, allocations: 187.2 kB / 353.3 MB, free: 1.684 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.09166, allocations: 81.11 kB / 353.4 MB, free: 1.586 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.934e-05/0.09176, allocations: 113.8 kB / 353.5 MB, free: 1.465 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.09178, allocations: 29.73 kB / 353.5 MB, free: 1.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.548e-05/0.09182, allocations: 84.14 kB / 353.6 MB, free: 1.344 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.527e-05/0.09184, allocations: 3.906 kB / 353.6 MB, free: 1.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.09188, allocations: 21.72 kB / 353.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.092, allocations: 314.8 kB / 353.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.395e-05/0.09204, allocations: 31.92 kB / 354 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.804e-05/0.09207, allocations: 27.98 kB / 354 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.679e-05/0.09217, allocations: 116.2 kB / 354.1 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.09218, allocations: 4.031 kB / 354.1 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001458/0.09233, allocations: 151.4 kB / 354.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.09237, allocations: 33.7 kB / 354.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.09238, allocations: 3.938 kB / 354.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.0924, allocations: 0 / 354.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.0924, allocations: 0 / 354.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.09241, allocations: 0 / 354.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.913e-05/0.09243, allocations: 4 kB / 354.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.09245, allocations: 0 / 354.3 MB, free: 0.5977 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 8.826e-05/0.09254, allocations: 155.4 kB / 354.5 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.09256, allocations: 7.906 kB / 354.5 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.786e-05/0.09258, allocations: 15.83 kB / 354.5 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.09259, allocations: 0 / 354.5 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.0926, allocations: 0 / 354.5 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.0926, allocations: 0 / 354.5 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001002/0.09271, allocations: 157.7 kB / 354.6 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.09271, allocations: 0 / 354.6 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.09272, allocations: 3.938 kB / 354.6 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.09272, allocations: 0 / 354.6 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.09274, allocations: 12.19 kB / 354.7 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.09275, allocations: 8 kB / 354.7 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.09276, allocations: 3.984 kB / 354.7 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.09296, allocations: 187 kB / 354.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.555e-05/0.09302, allocations: 92.88 kB / 354.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.09304, allocations: 7.938 kB / 354.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.341e-05/0.09306, allocations: 3.984 kB / 354.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.09308, allocations: 0 / 354.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.092e-06/0.09309, allocations: 7.938 kB / 355 MB, free: 15.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.079e-05/0.09314, allocations: 91.31 kB / 355 MB, free: 15.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09314, allocations: 0 / 355 MB, free: 15.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001899/0.09334, allocations: 11.98 kB / 355.1 MB, free: 15.73 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.0002267/0.09357, allocations: 124.5 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.09373, allocations: 131.4 kB / 355.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.09374, allocations: 0 / 355.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.086e-05/0.09382, allocations: 95.39 kB / 355.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.09395, allocations: 4 kB / 355.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000218/0.09418, allocations: 144.9 kB / 355.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.09441, allocations: 0.6768 MB / 356.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.298e-06/0.09442, allocations: 0 / 356.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.026e-05/0.09443, allocations: 11.44 kB / 356.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.573e-06/0.09444, allocations: 0 / 356.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of Templates: time 0.002497/0.09694, allocations: 0.6826 MB / 356.9 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 -s cvode -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