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.001388/0.001388, allocations: 100 kB / 21.18 MB, free: 0.5195 MB / 14.72 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.002005/0.002005, allocations: 181 kB / 24.45 MB, free: 3.863 MB / 14.72 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 1.487/1.487, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001798/0.001798, allocations: 47.92 kB / 371.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2849, allocations: 52.18 MB / 423.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001614/0.2865, allocations: 0.4885 MB / 424.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002798/0.2868, allocations: 59.8 kB / 424.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.938e-05/0.2868, allocations: 0 / 424.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.185e-05/0.2868, allocations: 7.938 kB / 424.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.866e-05/0.2869, allocations: 11.98 kB / 424.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.2871, allocations: 23.97 kB / 424.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.477e-05/0.2872, allocations: 23.91 kB / 424.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.302e-05/0.2872, allocations: 4 kB / 424.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.553e-05/0.2873, allocations: 15.92 kB / 424.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.595e-05/0.2873, allocations: 31.95 kB / 424.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.2873, allocations: 0 / 424.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.531e-05/0.2874, allocations: 4 kB / 424.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.977e-05/0.2874, allocations: 7.938 kB / 424.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.073e-05/0.2875, allocations: 4 kB / 424.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.2876, allocations: 31.56 kB / 424.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.2876, allocations: 7.984 kB / 424.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2876, allocations: 0 / 424.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.2876, allocations: 0 / 424.5 MB, free: 13.83 MB / 334.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.0003617/0.288, allocations: 287 kB / 424.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.288, allocations: 15.97 kB / 424.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.288, allocations: 0.9375 kB / 424.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.2881, allocations: 114.4 kB / 424.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.2882, allocations: 384 / 424.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.2882, allocations: 4.375 kB / 424.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001487/0.2883, allocations: 91.88 kB / 425 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.2883, allocations: 192 / 425 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.2883, allocations: 11.94 kB / 425 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.2884, allocations: 3.938 kB / 425 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.791e-05/0.2884, allocations: 53.69 kB / 425.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.2886, allocations: 109.3 kB / 425.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.2887, allocations: 72.27 kB / 425.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.198e-05/0.2887, allocations: 58.62 kB / 425.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.2887, allocations: 0 / 425.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.369e-05/0.2888, allocations: 68.2 kB / 425.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.2888, allocations: 0 / 425.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003475/0.2891, allocations: 242.7 kB / 425.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.2892, allocations: 81.14 kB / 425.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.549e-05/0.2893, allocations: 117.8 kB / 425.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.2893, allocations: 29.7 kB / 425.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.188e-05/0.2894, allocations: 84.14 kB / 425.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.2894, allocations: 7.953 kB / 425.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.2894, allocations: 21.7 kB / 425.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.2895, allocations: 314.8 kB / 426.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.335e-05/0.2896, allocations: 53.69 kB / 426.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.616e-05/0.2896, allocations: 57.62 kB / 426.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.2898, allocations: 124.2 kB / 426.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2898, allocations: 0 / 426.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001864/0.2899, allocations: 181.1 kB / 426.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.206e-05/0.29, allocations: 37.69 kB / 426.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.29, allocations: 0 / 426.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.29, allocations: 3.938 kB / 426.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.51e-07/0.29, allocations: 0 / 426.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.29, allocations: 0 / 426.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.069e-05/0.29, allocations: 4 kB / 426.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.2901, allocations: 0 / 426.7 MB, free: 11.34 MB / 334.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 0.0001071/0.2902, allocations: 151.5 kB / 426.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.498e-05/0.2902, allocations: 7.953 kB / 426.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.77e-05/0.2902, allocations: 12.03 kB / 426.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2902, allocations: 11.88 kB / 426.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2902, allocations: 3.984 kB / 426.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.2902, allocations: 0 / 426.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.568e-05/0.2903, allocations: 101.3 kB / 427 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2903, allocations: 4 kB / 427 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.485e-06/0.2903, allocations: 3.984 kB / 427 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.2903, allocations: 0 / 427 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.2903, allocations: 0 / 427 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.2903, allocations: 0 / 427 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2903, allocations: 7.938 kB / 427 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002418/0.2905, allocations: 228.5 kB / 427.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.257e-06/0.2906, allocations: 11.89 kB / 427.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.2906, allocations: 0 / 427.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.421e-05/0.2906, allocations: 4.25 kB / 427.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.975e-05/0.2906, allocations: 4.125 kB / 427.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/0.2906, allocations: 8 kB / 427.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.114e-05/0.2907, allocations: 91.27 kB / 427.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2907, allocations: 0 / 427.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001903/0.2909, allocations: 8 kB / 427.3 MB, free: 10.61 MB / 334.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.000361/0.2912, allocations: 135.6 kB / 427.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000202/0.2914, allocations: 182.8 kB / 427.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2914, allocations: 0 / 427.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.489e-05/0.2915, allocations: 113.1 kB / 427.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.2917, allocations: 10.7 kB / 427.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.292, allocations: 206.9 kB / 428 MB, free: 9.914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.777e-05/0.292, allocations: 71.33 kB / 428.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.2921, allocations: 7.438 kB / 428.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2921, allocations: 0 / 428.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of Templates: time 0.002428/0.2945, allocations: 0.6944 MB / 428.8 MB, free: 9.129 MB / 334.1 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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.2714862851426005]