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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008081/0.0008081, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003031/0.003031, allocations: 143.6 kB / 24.68 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8229/0.8229, allocations: 173.4 MB / 201.2 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.322e-05, allocations: 6.281 kB / 319.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0008595/0.0008828, allocations: 477.1 kB / 320.1 MB, free: 5.41 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001893/0.001072, allocations: 64.12 kB / 320.2 MB, free: 5.348 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.609e-05/0.001098, allocations: 4 kB / 320.2 MB, free: 5.344 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.684e-05/0.001125, allocations: 3.938 kB / 320.2 MB, free: 5.34 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.454e-05/0.00119, allocations: 15.92 kB / 320.2 MB, free: 5.324 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000137/0.001327, allocations: 15.97 kB / 320.2 MB, free: 5.309 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.41e-05/0.001411, allocations: 27.92 kB / 320.3 MB, free: 5.281 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.909e-05/0.00145, allocations: 8 kB / 320.3 MB, free: 5.273 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.667e-05/0.001486, allocations: 11.98 kB / 320.3 MB, free: 5.262 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.765e-05/0.001554, allocations: 31.95 kB / 320.3 MB, free: 5.23 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.001569, allocations: 3.938 kB / 320.3 MB, free: 5.227 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.534e-05/0.001604, allocations: 4 kB / 320.3 MB, free: 5.223 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.001644, allocations: 7.938 kB / 320.3 MB, free: 5.215 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.564e-05/0.00167, allocations: 4 kB / 320.3 MB, free: 5.211 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.971e-05/0.00176, allocations: 27.91 kB / 320.3 MB, free: 5.184 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.001762, allocations: 0 / 320.3 MB, free: 5.184 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.001762, allocations: 0 / 320.3 MB, free: 5.184 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.001766, allocations: 4 kB / 320.4 MB, free: 5.18 MB / 282.7 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.000258/0.002024, allocations: 299.9 kB / 320.6 MB, free: 4.848 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.002055, allocations: 8.922 kB / 320.7 MB, free: 4.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.754e-05/0.002082, allocations: 4.938 kB / 320.7 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.65e-05/0.002159, allocations: 105.8 kB / 320.8 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.002169, allocations: 4.375 kB / 320.8 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-06/0.002177, allocations: 384 / 320.8 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.002285, allocations: 95.88 kB / 320.9 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.002292, allocations: 192 / 320.9 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.002299, allocations: 384 / 320.9 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.002303, allocations: 384 / 320.9 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.95e-05/0.002343, allocations: 65.56 kB / 320.9 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.417e-05/0.002427, allocations: 101.3 kB / 321 MB, free: 4.398 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.648e-05/0.002483, allocations: 76.3 kB / 321.1 MB, free: 4.309 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.235e-05/0.002516, allocations: 58.62 kB / 321.2 MB, free: 4.242 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.622e-06/0.002522, allocations: 4 kB / 321.2 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.002552, allocations: 60.27 kB / 321.2 MB, free: 4.164 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 7.12e-07/0.002553, allocations: 0 / 321.2 MB, free: 4.164 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002124/0.002765, allocations: 238.7 kB / 321.5 MB, free: 3.906 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.002802, allocations: 85.09 kB / 321.5 MB, free: 3.805 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.135e-05/0.002863, allocations: 117.7 kB / 321.7 MB, free: 3.68 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-06/0.002873, allocations: 33.73 kB / 321.7 MB, free: 3.641 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.201e-05/0.002905, allocations: 86.47 kB / 321.8 MB, free: 3.555 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.002921, allocations: 7.891 kB / 321.8 MB, free: 3.547 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-05/0.002943, allocations: 17.72 kB / 321.8 MB, free: 3.523 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.89e-05/0.003012, allocations: 318.8 kB / 322.1 MB, free: 3.203 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.42e-05/0.003046, allocations: 57.69 kB / 322.2 MB, free: 3.141 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.777e-05/0.003074, allocations: 53.69 kB / 322.2 MB, free: 3.082 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.569e-05/0.003139, allocations: 120.2 kB / 322.3 MB, free: 2.949 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.003141, allocations: 7.875 kB / 322.3 MB, free: 2.941 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001085/0.003249, allocations: 177.2 kB / 322.5 MB, free: 2.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.003275, allocations: 37.69 kB / 322.5 MB, free: 2.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.003278, allocations: 4.062 kB / 322.6 MB, free: 2.703 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.003289, allocations: 3.984 kB / 322.6 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.62e-07/0.00329, allocations: 0 / 322.6 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.003294, allocations: 4 kB / 322.6 MB, free: 2.695 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.164e-05/0.003306, allocations: 3.938 kB / 322.6 MB, free: 2.691 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-06/0.003312, allocations: 0 / 322.6 MB, free: 2.691 MB / 282.7 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 5.985e-05/0.003372, allocations: 151.5 kB / 322.7 MB, free: 2.527 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.63e-06/0.003378, allocations: 3.953 kB / 322.7 MB, free: 2.523 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.281e-05/0.003391, allocations: 12 kB / 322.7 MB, free: 2.504 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.003392, allocations: 0 / 322.7 MB, free: 2.504 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.003396, allocations: 4.25 kB / 322.7 MB, free: 2.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.003399, allocations: 7.875 kB / 322.7 MB, free: 2.492 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.999e-05/0.003449, allocations: 109.3 kB / 322.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-07/0.00345, allocations: 0 / 322.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.21e-07/0.00345, allocations: 0 / 322.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.003451, allocations: 0 / 322.8 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.003458, allocations: 4 kB / 322.8 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.61e-07/0.003458, allocations: 0 / 322.8 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.003462, allocations: 7.922 kB / 322.9 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.003593, allocations: 228.4 kB / 323.1 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.051e-06/0.003599, allocations: 3.953 kB / 323.1 MB, free: 2.086 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/0.00361, allocations: 8.031 kB / 323.1 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.871e-06/0.003616, allocations: 0 / 323.1 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.072e-05/0.003627, allocations: 0 / 323.1 MB, free: 2.078 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.003631, allocations: 4 kB / 323.1 MB, free: 2.074 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.378e-05/0.003665, allocations: 91.27 kB / 323.2 MB, free: 1.984 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.003665, allocations: 0 / 323.2 MB, free: 1.984 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001244/0.003789, allocations: 11.94 kB / 323.2 MB, free: 1.973 MB / 282.7 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.0002228/0.004012, allocations: 138 kB / 323.3 MB, free: 1.848 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001303/0.004142, allocations: 182.7 kB / 323.5 MB, free: 1.645 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.004144, allocations: 0 / 323.5 MB, free: 1.645 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.885e-05/0.004193, allocations: 121.1 kB / 323.6 MB, free: 1.508 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.601e-05/0.004289, allocations: 4 kB / 323.6 MB, free: 1.504 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002175/0.004507, allocations: 196.3 kB / 323.8 MB, free: 1.273 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.79e-05/0.004554, allocations: 67.33 kB / 323.9 MB, free: 1.188 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.069e-05/0.004565, allocations: 8.5 kB / 323.9 MB, free: 1.176 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.004566, allocations: 4.125 kB / 323.9 MB, free: 1.172 MB / 282.7 MB Notification: Performance of Templates: time 0.001413/0.005978, allocations: 0.6861 MB / 324.6 MB, free: 0.4922 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9259005589410663]