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.001913/0.001913, allocations: 107.6 kB / 21.18 MB, free: 0.5859 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.001958/0.001958, allocations: 215.9 kB / 24.48 MB, free: 3.875 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.577/1.577, allocations: 207.7 MB / 235.3 MB, free: 9.793 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.001962/0.001962, allocations: 52.34 kB / 347.7 MB, free: 9.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2937, allocations: 49.16 MB / 396.8 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001675/0.2954, allocations: 497.8 kB / 397.3 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002855/0.2957, allocations: 55.14 kB / 397.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.768e-05/0.2957, allocations: 5.75 kB / 397.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.722e-05/0.2957, allocations: 0.75 kB / 397.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.455e-05/0.2958, allocations: 16.94 kB / 397.4 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001671/0.296, allocations: 17.36 kB / 397.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.2961, allocations: 20.34 kB / 397.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.141e-05/0.2961, allocations: 2.719 kB / 397.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.661e-05/0.2962, allocations: 17.95 kB / 397.4 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.773e-05/0.2962, allocations: 26.33 kB / 397.5 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.2963, allocations: 1.219 kB / 397.5 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.207e-05/0.2963, allocations: 14.09 kB / 397.5 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.337e-05/0.2964, allocations: 7.719 kB / 397.5 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.253e-05/0.2964, allocations: 11.52 kB / 397.5 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.2965, allocations: 23.92 kB / 397.5 MB, free: 9.016 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2965, allocations: 5.891 kB / 397.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.2965, allocations: 0 / 397.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.2965, allocations: 0 / 397.5 MB, free: 9.012 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.0003187/0.2968, allocations: 288.9 kB / 397.8 MB, free: 8.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.2969, allocations: 13.7 kB / 397.8 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.19e-05/0.2969, allocations: 12.55 kB / 397.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.227e-05/0.297, allocations: 106 kB / 397.9 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.297, allocations: 4.375 kB / 397.9 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.297, allocations: 6.656 kB / 397.9 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.2971, allocations: 90.44 kB / 398 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2971, allocations: 192 / 398 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.2972, allocations: 9.188 kB / 398 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.2972, allocations: 0 / 398 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.409e-05/0.2972, allocations: 53.14 kB / 398.1 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001083/0.2973, allocations: 106.3 kB / 398.2 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.682e-05/0.2974, allocations: 72.41 kB / 398.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.204e-05/0.2975, allocations: 58.88 kB / 398.3 MB, free: 8.242 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.2975, allocations: 3.938 kB / 398.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.2975, allocations: 64.62 kB / 398.4 MB, free: 8.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.193e-06/0.2975, allocations: 0 / 398.4 MB, free: 8.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003284/0.2978, allocations: 255.6 kB / 398.6 MB, free: 8.012 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.2979, allocations: 80.3 kB / 398.7 MB, free: 7.918 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.703e-05/0.298, allocations: 110.4 kB / 398.8 MB, free: 7.816 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.606e-06/0.298, allocations: 27.64 kB / 398.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.21e-05/0.298, allocations: 85.3 kB / 398.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.298, allocations: 7.203 kB / 399 MB, free: 7.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/0.298, allocations: 21.67 kB / 399 MB, free: 7.676 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.385e-05/0.2981, allocations: 314.9 kB / 399.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.792e-05/0.2981, allocations: 55.27 kB / 399.3 MB, free: 7.328 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.402e-05/0.2982, allocations: 58.47 kB / 399.4 MB, free: 7.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.714e-05/0.2983, allocations: 125.5 kB / 399.5 MB, free: 7.211 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2983, allocations: 0 / 399.5 MB, free: 7.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001659/0.2985, allocations: 179.7 kB / 399.7 MB, free: 7.109 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/0.2985, allocations: 38.06 kB / 399.7 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2985, allocations: 1.172 kB / 399.7 MB, free: 7.074 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.2985, allocations: 3.938 kB / 399.7 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.2985, allocations: 1.312 kB / 399.7 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.2985, allocations: 0 / 399.7 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.008e-05/0.2985, allocations: 1.625 kB / 399.7 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.2985, allocations: 9.344 kB / 399.7 MB, free: 7.066 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.805e-05/0.2986, allocations: 148.9 kB / 399.9 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.2986, allocations: 4.188 kB / 399.9 MB, free: 6.914 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.605e-05/0.2986, allocations: 10.45 kB / 399.9 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2986, allocations: 3.938 kB / 399.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.2986, allocations: 5.672 kB / 399.9 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2986, allocations: 256 / 399.9 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.613e-05/0.2987, allocations: 107.9 kB / 400 MB, free: 6.766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2987, allocations: 4 kB / 400 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.2987, allocations: 1.156 kB / 400 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.2987, allocations: 4 kB / 400 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.2987, allocations: 3 kB / 400 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.2987, allocations: 4.906 kB / 400 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2987, allocations: 3.938 kB / 400 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002064/0.2989, allocations: 228.6 kB / 400.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.656e-06/0.2989, allocations: 2.094 kB / 400.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.299, allocations: 2.062 kB / 400.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.332e-05/0.299, allocations: 1.812 kB / 400.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.292e-05/0.299, allocations: 5.125 kB / 400.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.299, allocations: 3 kB / 400.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.309e-05/0.299, allocations: 94.33 kB / 400.4 MB, free: 6.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.299, allocations: 4.031 kB / 400.4 MB, free: 6.516 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001929/0.2992, allocations: 9.516 kB / 400.4 MB, free: 6.516 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.0003089/0.2995, allocations: 125 kB / 400.5 MB, free: 6.406 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001787/0.2997, allocations: 183.7 kB / 400.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2997, allocations: 0 / 400.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.222e-05/0.2998, allocations: 120.2 kB / 400.8 MB, free: 6.168 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.2999, allocations: 4.375 kB / 400.8 MB, free: 6.168 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002474/0.3002, allocations: 174.1 kB / 401 MB, free: 6.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.72e-05/0.3002, allocations: 64.89 kB / 401 MB, free: 5.949 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.39e-06/0.3002, allocations: 0 / 401 MB, free: 5.949 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.04e-05/0.3002, allocations: 7.438 kB / 401 MB, free: 5.941 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3002, allocations: 0 / 401 MB, free: 5.941 MB / 318.1 MB Notification: Performance of Templates: time 0.003361/0.3036, allocations: 0.7177 MB / 401.8 MB, free: 5.801 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/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: 4.643433464691043]