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.001459/0.001459, allocations: 107.6 kB / 17.06 MB, free: 5.824 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.00165/0.00165, allocations: 192 kB / 18 MB, free: 4.977 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.338/1.338, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009725/0.0009725, allocations: 43.92 kB / 351.2 MB, free: 3.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2328, allocations: 49.44 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001688/0.2345, allocations: 486.4 kB / 401.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003131/0.2348, allocations: 68.06 kB / 401.2 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.69e-05/0.2349, allocations: 0 / 401.2 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.102e-05/0.2349, allocations: 7.938 kB / 401.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.761e-05/0.235, allocations: 12.95 kB / 401.3 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.2352, allocations: 23.91 kB / 401.3 MB, free: 8.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.2353, allocations: 15.98 kB / 401.3 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.956e-05/0.2354, allocations: 4 kB / 401.3 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.281e-05/0.2355, allocations: 15.97 kB / 401.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.375e-05/0.2356, allocations: 27.92 kB / 401.3 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.2356, allocations: 0 / 401.3 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.753e-05/0.2357, allocations: 8 kB / 401.3 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.825e-05/0.2357, allocations: 3.984 kB / 401.3 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.048e-05/0.2358, allocations: 15.92 kB / 401.4 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.2359, allocations: 23.92 kB / 401.4 MB, free: 8.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.236, allocations: 0 / 401.4 MB, free: 8.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.236, allocations: 0 / 401.4 MB, free: 8.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.353e-06/0.236, allocations: 0 / 401.4 MB, free: 8.203 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.00045/0.2364, allocations: 357.2 kB / 401.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.2365, allocations: 16.03 kB / 401.8 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.766e-05/0.2365, allocations: 0.9375 kB / 401.8 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.2367, allocations: 173.5 kB / 401.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.2367, allocations: 384 / 401.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.2367, allocations: 4.375 kB / 401.9 MB, free: 7.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001483/0.2369, allocations: 66.17 kB / 402 MB, free: 7.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.2369, allocations: 192 / 402 MB, free: 7.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.2369, allocations: 3.938 kB / 402 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2369, allocations: 0 / 402 MB, free: 7.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.559e-05/0.237, allocations: 27.98 kB / 402 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001524/0.2371, allocations: 161.5 kB / 402.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.669e-05/0.2372, allocations: 50.55 kB / 402.2 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.091e-05/0.2372, allocations: 32.92 kB / 402.3 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.014e-05/0.2373, allocations: 0 / 402.3 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.081e-05/0.2373, allocations: 72.2 kB / 402.3 MB, free: 7.086 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.2373, allocations: 0 / 402.3 MB, free: 7.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002872/0.2376, allocations: 187.4 kB / 402.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.2377, allocations: 85.09 kB / 402.6 MB, free: 6.789 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.6e-05/0.2378, allocations: 109.8 kB / 402.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.2378, allocations: 29.7 kB / 402.7 MB, free: 6.637 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.888e-05/0.2379, allocations: 80.14 kB / 402.8 MB, free: 6.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.2379, allocations: 11.91 kB / 402.8 MB, free: 6.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.048e-05/0.2379, allocations: 13.72 kB / 402.8 MB, free: 6.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.238, allocations: 318.8 kB / 403.1 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.66e-05/0.2381, allocations: 36.02 kB / 403.2 MB, free: 6.168 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.733e-05/0.2381, allocations: 23.94 kB / 403.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.2382, allocations: 120.2 kB / 403.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2382, allocations: 0 / 403.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001521/0.2384, allocations: 155.3 kB / 403.5 MB, free: 5.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.2384, allocations: 33.69 kB / 403.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2385, allocations: 7.938 kB / 403.5 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.2385, allocations: 0 / 403.5 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.2385, allocations: 0 / 403.5 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.2385, allocations: 0 / 403.5 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.2385, allocations: 4.062 kB / 403.5 MB, free: 5.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.2385, allocations: 4 kB / 403.5 MB, free: 5.793 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 9.595e-05/0.2386, allocations: 147.5 kB / 403.7 MB, free: 5.633 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.18e-05/0.2386, allocations: 4 kB / 403.7 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.67e-05/0.2387, allocations: 7.844 kB / 403.7 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.2387, allocations: 3.938 kB / 403.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2387, allocations: 0 / 403.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2387, allocations: 3.984 kB / 403.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.711e-05/0.2388, allocations: 161.6 kB / 403.8 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.2388, allocations: 4 kB / 403.9 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.2388, allocations: 0 / 403.9 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.2388, allocations: 0 / 403.9 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.2388, allocations: 7.938 kB / 403.9 MB, free: 5.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.2388, allocations: 3.938 kB / 403.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2388, allocations: 0 / 403.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002451/0.2391, allocations: 191 kB / 404 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.2391, allocations: 81.11 kB / 404.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.2391, allocations: 11.97 kB / 404.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.349e-05/0.2392, allocations: 4 kB / 404.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.254e-05/0.2392, allocations: 0 / 404.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.992e-06/0.2392, allocations: 3.984 kB / 404.1 MB, free: 5.055 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.107e-05/0.2393, allocations: 91.28 kB / 404.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2393, allocations: 0 / 404.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001876/0.2395, allocations: 12 kB / 404.2 MB, free: 4.953 MB / 318.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.0002622/0.2398, allocations: 141.5 kB / 404.4 MB, free: 4.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000197/0.24, allocations: 127.4 kB / 404.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.24, allocations: 0 / 404.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.081e-05/0.24, allocations: 99.36 kB / 404.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.2402, allocations: 8 kB / 404.6 MB, free: 4.566 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002768/0.2405, allocations: 140.9 kB / 404.8 MB, free: 4.402 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/0.2408, allocations: 0.6885 MB / 405.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.662e-06/0.2408, allocations: 0 / 405.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.196e-05/0.2408, allocations: 7.438 kB / 405.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2408, allocations: 0 / 405.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of Templates: time 0.002767/0.2436, allocations: 0.6891 MB / 406.1 MB, free: 3.008 MB / 318.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/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