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.001476/0.001477, allocations: 113 kB / 17.05 MB, free: 6.086 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.001802/0.001802, allocations: 188 kB / 17.99 MB, free: 5.184 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.355/1.355, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009947/0.0009949, allocations: 47.92 kB / 351.2 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2426, allocations: 49.43 MB / 400.7 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001431/0.244, allocations: 495.5 kB / 401.2 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002323/0.2443, allocations: 59.8 kB / 401.2 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.667e-05/0.2443, allocations: 4 kB / 401.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.921e-05/0.2444, allocations: 0 / 401.2 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.072e-05/0.2444, allocations: 19.91 kB / 401.2 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001388/0.2446, allocations: 15.98 kB / 401.3 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.846e-05/0.2447, allocations: 15.98 kB / 401.3 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.037e-05/0.2447, allocations: 11.97 kB / 401.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.601e-05/0.2448, allocations: 8 kB / 401.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.43e-05/0.2448, allocations: 31.84 kB / 401.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.2448, allocations: 0 / 401.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.811e-05/0.2449, allocations: 4 kB / 401.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.201e-05/0.2449, allocations: 15.92 kB / 401.3 MB, free: 8.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.216e-05/0.245, allocations: 11.94 kB / 401.4 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.088e-05/0.2451, allocations: 27.7 kB / 401.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2451, allocations: 0 / 401.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2451, allocations: 0 / 401.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.2451, allocations: 0 / 401.4 MB, free: 8.34 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.0003236/0.2454, allocations: 369 kB / 401.7 MB, free: 7.922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.2455, allocations: 8.031 kB / 401.8 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.17e-05/0.2455, allocations: 4.938 kB / 401.8 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.929e-05/0.2456, allocations: 168.3 kB / 401.9 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.2456, allocations: 8.375 kB / 401.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-06/0.2456, allocations: 384 / 401.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.2457, allocations: 62.23 kB / 402 MB, free: 7.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.2458, allocations: 192 / 402 MB, free: 7.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.2458, allocations: 11.88 kB / 402 MB, free: 7.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.2458, allocations: 0 / 402 MB, free: 7.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.67e-05/0.2458, allocations: 23.98 kB / 402 MB, free: 7.598 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.246, allocations: 161.7 kB / 402.2 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.871e-05/0.246, allocations: 54.5 kB / 402.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.591e-05/0.2461, allocations: 32.89 kB / 402.3 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.2461, allocations: 0 / 402.3 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.915e-05/0.2461, allocations: 60.3 kB / 402.3 MB, free: 7.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.2461, allocations: 0 / 402.3 MB, free: 7.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002579/0.2464, allocations: 191.2 kB / 402.5 MB, free: 7.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.2465, allocations: 81.11 kB / 402.6 MB, free: 6.922 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.343e-05/0.2465, allocations: 109.8 kB / 402.7 MB, free: 6.805 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.2466, allocations: 29.73 kB / 402.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.44e-05/0.2466, allocations: 84.14 kB / 402.8 MB, free: 6.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.2466, allocations: 11.91 kB / 402.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.2467, allocations: 21.7 kB / 402.8 MB, free: 6.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.894e-05/0.2468, allocations: 314.8 kB / 403.2 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.041e-05/0.2468, allocations: 23.98 kB / 403.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.674e-05/0.2468, allocations: 27.98 kB / 403.2 MB, free: 6.277 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.147e-05/0.2469, allocations: 120.2 kB / 403.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2469, allocations: 4.031 kB / 403.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001428/0.2471, allocations: 151.4 kB / 403.5 MB, free: 5.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.2471, allocations: 36.2 kB / 403.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2471, allocations: 3.938 kB / 403.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.2471, allocations: 0 / 403.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.2471, allocations: 0 / 403.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.2472, allocations: 3.984 kB / 403.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.841e-05/0.2472, allocations: 4 kB / 403.5 MB, free: 5.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.2472, allocations: 3.938 kB / 403.5 MB, free: 5.926 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 7.853e-05/0.2473, allocations: 147.6 kB / 403.7 MB, free: 5.766 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.86e-05/0.2473, allocations: 11.94 kB / 403.7 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.571e-05/0.2473, allocations: 11.84 kB / 403.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.2473, allocations: 0 / 403.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.2473, allocations: 0 / 403.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.2473, allocations: 0 / 403.7 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.552e-05/0.2474, allocations: 157.7 kB / 403.8 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2474, allocations: 0 / 403.8 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.2474, allocations: 0 / 403.8 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.2474, allocations: 0 / 403.8 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.2475, allocations: 11.92 kB / 403.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.2475, allocations: 12.12 kB / 403.9 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2475, allocations: 0 / 403.9 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001824/0.2477, allocations: 190.8 kB / 404.1 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.427e-05/0.2477, allocations: 88.98 kB / 404.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.2477, allocations: 7.938 kB / 404.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.181e-05/0.2477, allocations: 0 / 404.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-06/0.2478, allocations: 0 / 404.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-06/0.2478, allocations: 4 kB / 404.2 MB, free: 5.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.053e-05/0.2478, allocations: 95.3 kB / 404.2 MB, free: 5.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2478, allocations: 0 / 404.2 MB, free: 5.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001889/0.248, allocations: 8 kB / 404.3 MB, free: 5.078 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.0002362/0.2483, allocations: 124.9 kB / 404.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001697/0.2484, allocations: 139.3 kB / 404.5 MB, free: 4.809 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2485, allocations: 3.938 kB / 404.5 MB, free: 4.805 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.695e-05/0.2485, allocations: 95.39 kB / 404.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.2487, allocations: 4 kB / 404.6 MB, free: 4.695 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002127/0.2489, allocations: 141 kB / 404.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002049/0.2491, allocations: 0.6844 MB / 405.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.73e-06/0.2491, allocations: 0 / 405.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.079e-05/0.2491, allocations: 7.438 kB / 405.4 MB, free: 3.812 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2491, allocations: 128 / 405.4 MB, free: 3.812 MB / 318.1 MB Notification: Performance of Templates: time 0.003257/0.2524, allocations: 0.6895 MB / 406.1 MB, free: 3.141 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