Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 108.6 kB / 21.93 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00204/0.00204, allocations: 214 kB / 25.23 MB, free: 3.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 63.91 kB / 348.4 MB, free: 9.418 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2659, allocations: 49.16 MB / 397.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001673/0.2676, allocations: 497.9 kB / 398.1 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002705/0.2678, allocations: 59.31 kB / 398.1 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.941e-05/0.2679, allocations: 1.125 kB / 398.1 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.372e-05/0.2679, allocations: 4.594 kB / 398.1 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.219e-05/0.268, allocations: 12.31 kB / 398.1 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.2682, allocations: 22.64 kB / 398.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.297e-05/0.2683, allocations: 15.66 kB / 398.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.444e-05/0.2683, allocations: 3.641 kB / 398.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.754e-05/0.2683, allocations: 21.42 kB / 398.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.841e-05/0.2684, allocations: 26.75 kB / 398.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.2684, allocations: 1.312 kB / 398.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.493e-05/0.2685, allocations: 9.422 kB / 398.2 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.139e-05/0.2685, allocations: 4.328 kB / 398.2 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.554e-05/0.2686, allocations: 11.8 kB / 398.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.84e-05/0.2687, allocations: 27.75 kB / 398.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2687, allocations: 1.5 kB / 398.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2687, allocations: 0 / 398.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.2687, allocations: 0 / 398.3 MB, free: 9.02 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.00029/0.269, allocations: 287.9 kB / 398.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.269, allocations: 15.08 kB / 398.6 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.564e-05/0.269, allocations: 10.27 kB / 398.6 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.34e-05/0.2691, allocations: 106.9 kB / 398.7 MB, free: 8.586 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.2691, allocations: 1.562 kB / 398.7 MB, free: 8.586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.2691, allocations: 6.625 kB / 398.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.2692, allocations: 88.72 kB / 398.8 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.2692, allocations: 192 / 398.8 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.2693, allocations: 6.234 kB / 398.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.2693, allocations: 0 / 398.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.042e-05/0.2693, allocations: 58.12 kB / 398.8 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.042e-05/0.2694, allocations: 108.4 kB / 399 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.906e-05/0.2695, allocations: 77.89 kB / 399 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.645e-05/0.2695, allocations: 69.48 kB / 399.1 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-06/0.2695, allocations: 1.094 kB / 399.1 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.2696, allocations: 59.72 kB / 399.2 MB, free: 8.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.2696, allocations: 0 / 399.2 MB, free: 8.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002985/0.2698, allocations: 248.8 kB / 399.4 MB, free: 8.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.2699, allocations: 79.83 kB / 399.5 MB, free: 7.926 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.84e-05/0.2699, allocations: 115 kB / 399.6 MB, free: 7.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.217e-06/0.27, allocations: 26.83 kB / 399.6 MB, free: 7.789 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.531e-05/0.27, allocations: 82 kB / 399.7 MB, free: 7.707 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.27, allocations: 13.92 kB / 399.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.038e-05/0.27, allocations: 21.16 kB / 399.7 MB, free: 7.676 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.638e-05/0.2701, allocations: 315.1 kB / 400 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.478e-05/0.2701, allocations: 60.92 kB / 400.1 MB, free: 7.324 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.763e-05/0.2702, allocations: 53.36 kB / 400.1 MB, free: 7.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.883e-05/0.2703, allocations: 121.9 kB / 400.3 MB, free: 7.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.2703, allocations: 0 / 400.3 MB, free: 7.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001533/0.2704, allocations: 184.6 kB / 400.4 MB, free: 7.109 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.2704, allocations: 33.59 kB / 400.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.2704, allocations: 1.25 kB / 400.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.2705, allocations: 3.938 kB / 400.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.2705, allocations: 4.062 kB / 400.5 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.2705, allocations: 2.547 kB / 400.5 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.917e-05/0.2705, allocations: 1.344 kB / 400.5 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.2705, allocations: 1.438 kB / 400.5 MB, free: 7.07 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 6.41e-05/0.2706, allocations: 160.5 kB / 400.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.128e-05/0.2706, allocations: 2.844 kB / 400.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.527e-05/0.2706, allocations: 5.906 kB / 400.7 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2706, allocations: 5.344 kB / 400.7 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2706, allocations: 0.6094 kB / 400.7 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.2706, allocations: 0 / 400.7 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.187e-05/0.2706, allocations: 107.2 kB / 400.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2706, allocations: 1.375 kB / 400.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.373e-06/0.2706, allocations: 0.7969 kB / 400.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.2706, allocations: 3.938 kB / 400.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.2707, allocations: 7.766 kB / 400.8 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.2707, allocations: 256 / 400.8 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2707, allocations: 3.938 kB / 400.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.2708, allocations: 228.9 kB / 401 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.104e-06/0.2709, allocations: 2.234 kB / 401 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.2709, allocations: 2.375 kB / 401 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.27e-05/0.2709, allocations: 1.188 kB / 401 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.16e-05/0.2709, allocations: 9.875 kB / 401 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.2709, allocations: 6.797 kB / 401 MB, free: 6.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.966e-05/0.2709, allocations: 90.64 kB / 401.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2709, allocations: 0 / 401.1 MB, free: 6.523 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000194/0.2711, allocations: 9.719 kB / 401.1 MB, free: 6.523 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.000283/0.2714, allocations: 133.1 kB / 401.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001618/0.2716, allocations: 184.1 kB / 401.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2716, allocations: 0 / 401.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.9e-05/0.2716, allocations: 116.6 kB / 401.6 MB, free: 6.172 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000152/0.2718, allocations: 3.656 kB / 401.6 MB, free: 6.172 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002332/0.272, allocations: 205.3 kB / 401.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.477e-05/0.2721, allocations: 63.95 kB / 401.8 MB, free: 5.918 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.052e-05/0.2721, allocations: 8.844 kB / 401.8 MB, free: 5.91 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2721, allocations: 0 / 401.8 MB, free: 5.91 MB / 318.1 MB Notification: Performance of Templates: time 0.002408/0.2745, allocations: 0.6897 MB / 402.5 MB, free: 5.844 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 7.259473723825067]