Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.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.002038/0.002038, allocations: 84.28 kB / 19.18 MB, free: 2.523 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.002993/0.002993, allocations: 170.3 kB / 22.46 MB, free: 5.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.457/1.457, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.857/2.857, allocations: 377.8 MB / 0.6221 GB, free: 12.62 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 0.9814 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.8e-05/2.936e-05, allocations: 8.891 kB / 0.9814 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002736/0.002765, allocations: 1.591 MB / 0.983 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001432/0.004197, allocations: 0.7168 MB / 0.9837 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.699e-05/0.004254, allocations: 7.938 kB / 0.9837 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.00436, allocations: 15.86 kB / 0.9837 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.851e-05/0.004419, allocations: 19.75 kB / 0.9837 GB, free: 9.645 MB / 0.9356 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/Utilities/IO/Files/BaseClasses/printRealArray.mo:2:1-45:19:writable] Warning: Pure function 'Buildings.Utilities.IO.Files.BaseClasses.printRealArray' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004504/0.004869, allocations: 119.5 kB / 0.9838 GB, free: 9.527 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002167/0.005086, allocations: 139.5 kB / 0.9839 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.005209, allocations: 25.3 kB / 0.984 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.00534, allocations: 75.8 kB / 0.984 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.00544, allocations: 55.8 kB / 0.9841 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.005472, allocations: 12 kB / 0.9841 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.005604, allocations: 51.89 kB / 0.9842 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.926e-05/0.005664, allocations: 27.92 kB / 0.9842 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.923e-05/0.005733, allocations: 43.89 kB / 0.9842 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002941/0.006027, allocations: 191.4 kB / 0.9844 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.006029, allocations: 0 / 0.9844 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of FrontEnd: time 7.71e-07/0.00603, allocations: 4 kB / 0.9844 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.006034, allocations: 0 / 0.9844 GB, free: 8.914 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009018/0.006936, allocations: 478.6 kB / 0.9849 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.00697, allocations: 19.97 kB / 0.9849 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.16e-05/0.007032, allocations: 16.84 kB / 0.9849 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.00726, allocations: 161.5 kB / 0.9851 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.007278, allocations: 8.359 kB / 0.9851 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.0073, allocations: 16.31 kB / 0.9851 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003391/0.007639, allocations: 123.9 kB / 0.9852 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.007648, allocations: 192 / 0.9852 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.007665, allocations: 4.375 kB / 0.9852 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.007673, allocations: 11.86 kB / 0.9852 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.007937, allocations: 71.92 kB / 0.9853 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006439/0.008581, allocations: 384.5 kB / 0.9856 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.008803, allocations: 81.12 kB / 0.9857 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.00895, allocations: 41.81 kB / 0.9858 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.008978, allocations: 8 kB / 0.9858 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003433/0.009322, allocations: 145 kB / 0.9859 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.009323, allocations: 0 / 0.9859 GB, free: 7.215 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0006374/0.00996, allocations: 189.4 kB / 0.9861 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.01002, allocations: 81.11 kB / 0.9862 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.0102, allocations: 171.2 kB / 0.9863 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.01024, allocations: 34.08 kB / 0.9864 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.458e-05/0.01034, allocations: 112.4 kB / 0.9865 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.19e-05/0.01038, allocations: 31.73 kB / 0.9865 GB, free: 6.562 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.01044, allocations: 33.7 kB / 0.9865 GB, free: 6.523 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.01061, allocations: 334.9 kB / 0.9869 GB, free: 6.188 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.01075, allocations: 39.91 kB / 0.9869 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/0.01102, allocations: 191.4 kB / 0.9871 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/0.01136, allocations: 151.5 kB / 0.9872 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01136, allocations: 4 kB / 0.9872 GB, free: 5.727 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004187/0.01178, allocations: 165.3 kB / 0.9874 GB, free: 5.559 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.01181, allocations: 8 kB / 0.9874 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.01181, allocations: 0 / 0.9874 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.01183, allocations: 8.281 kB / 0.9874 GB, free: 5.543 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.01194, allocations: 19.92 kB / 0.9874 GB, free: 5.523 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.01195, allocations: 4 kB / 0.9874 GB, free: 5.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.01206, allocations: 15.98 kB / 0.9874 GB, free: 5.504 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.01207, allocations: 4 kB / 0.9874 GB, free: 5.5 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 (pri2.firstTrigger,$PRE.pri2.firstTrigger,pri1.firstTrigger,$PRE.pri1.firstTrigger,$whenCondition4,pri1.sampleTrigger,$whenCondition2,pri2.sampleTrigger,$whenCondition3,pri3.firstTrigger,$PRE.pri3.firstTrigger,pri3.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001444/0.01221, allocations: 146.2 kB / 0.9876 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.092e-05/0.01225, allocations: 15.91 kB / 0.9876 GB, free: 5.332 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.956e-05/0.0123, allocations: 21.45 kB / 0.9876 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.0123, allocations: 0 / 0.9876 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.0123, allocations: 8 kB / 0.9876 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.01231, allocations: 0 / 0.9876 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007496/0.01306, allocations: 465.2 kB / 0.9881 GB, free: 4.812 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.01306, allocations: 4 kB / 0.9881 GB, free: 4.809 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.215e-05/0.01314, allocations: 11.98 kB / 0.9881 GB, free: 4.797 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.01315, allocations: 0 / 0.9881 GB, free: 4.797 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.01316, allocations: 3.984 kB / 0.9881 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.01316, allocations: 4 kB / 0.9881 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.01316, allocations: 8 kB / 0.9881 GB, free: 4.781 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004894/0.01365, allocations: 326.8 kB / 0.9884 GB, free: 4.445 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 2.342e-05/0.01368, allocations: 15.89 kB / 0.9884 GB, free: 4.43 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.5e-05/0.0137, allocations: 7.984 kB / 0.9884 GB, free: 4.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/0.01389, allocations: 15.98 kB / 0.9884 GB, free: 4.406 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.559e-05/0.01395, allocations: 7.984 kB / 0.9884 GB, free: 4.398 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.736e-05/0.01399, allocations: 15.92 kB / 0.9885 GB, free: 4.383 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000101/0.01409, allocations: 119.2 kB / 0.9886 GB, free: 4.266 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.01409, allocations: 4 kB / 0.9886 GB, free: 4.262 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003504/0.01444, allocations: 40.03 kB / 0.9886 GB, free: 4.223 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (pri3.sampleTrigger,$whenCondition1,pri3.firstTrigger,pri2.sampleTrigger,pri1.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,pri1.firstTrigger,pri2.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004755/0.01491, allocations: 200.7 kB / 0.9888 GB, free: 4.051 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003752/0.01529, allocations: 103.9 kB / 0.9889 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.01529, allocations: 0.5625 kB / 0.9889 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001688/0.01546, allocations: 51.91 kB / 0.989 GB, free: 3.898 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.01583, allocations: 23.92 kB / 0.989 GB, free: 3.875 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005652/0.0164, allocations: 254.9 kB / 0.9892 GB, free: 3.594 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/0.01651, allocations: 102.2 kB / 0.9893 GB, free: 3.469 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.706e-05/0.01658, allocations: 28.47 kB / 0.9894 GB, free: 3.441 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.684e-05/0.01662, allocations: 12.5 kB / 0.9894 GB, free: 3.43 MB / 0.9356 GB Notification: Performance of SimCode: time 4.11e-07/0.01662, allocations: 0 / 0.9894 GB, free: 3.43 MB / 0.9356 GB Notification: Performance of Templates: time 0.005919/0.02254, allocations: 1.792 MB / 0.9911 GB, free: 1.684 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.020928628742695]