Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.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.0009283/0.0009283, allocations: 87.58 kB / 20.45 MB, free: 4.117 MB / 18.57 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.001328/0.001328, allocations: 161 kB / 23.82 MB, free: 0.7461 MB / 18.57 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 0.9346/0.9346, allocations: 177.1 MB / 204.2 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.772/1.772, allocations: 359 MB / 0.6052 GB, free: 11.02 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 0.7871 GB, free: 12.54 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.575e-05/2.75e-05, allocations: 5.406 kB / 0.7871 GB, free: 12.54 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002273/0.0023, allocations: 1.708 MB / 0.7887 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0008088/0.003109, allocations: 0.5977 MB / 0.7893 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.169e-05/0.003191, allocations: 4 kB / 0.7893 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.003374, allocations: 36.27 kB / 0.7894 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.003608, allocations: 68.61 kB / 0.7894 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001753/0.003784, allocations: 71.84 kB / 0.7895 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.003939, allocations: 136.2 kB / 0.7896 GB, free: 9.926 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.004071, allocations: 38.47 kB / 0.7897 GB, free: 9.887 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.004228, allocations: 79.8 kB / 0.7897 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.741e-05/0.004305, allocations: 44.92 kB / 0.7898 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.004331, allocations: 11.98 kB / 0.7898 GB, free: 9.754 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.679e-05/0.004398, allocations: 27.94 kB / 0.7898 GB, free: 9.727 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 7.878e-05/0.004477, allocations: 52.62 kB / 0.7899 GB, free: 9.676 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.245e-05/0.004519, allocations: 33.05 kB / 0.7899 GB, free: 9.645 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.004692, allocations: 111.5 kB / 0.79 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.004695, allocations: 0 / 0.79 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.72e-07/0.004696, allocations: 0 / 0.79 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.409e-06/0.0047, allocations: 1.531 kB / 0.79 GB, free: 9.535 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007008/0.005401, allocations: 499.6 kB / 0.7905 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.005437, allocations: 12.03 kB / 0.7905 GB, free: 9 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.00557, allocations: 26.31 kB / 0.7905 GB, free: 8.977 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.005785, allocations: 195.1 kB / 0.7907 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.005797, allocations: 4.375 kB / 0.7907 GB, free: 8.758 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.005814, allocations: 12.31 kB / 0.7907 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.006007, allocations: 136.7 kB / 0.7908 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.006018, allocations: 192 / 0.7908 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.006033, allocations: 4.359 kB / 0.7908 GB, free: 8.59 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.006043, allocations: 3.938 kB / 0.7909 GB, free: 8.586 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.782e-05/0.006081, allocations: 13.12 kB / 0.7909 GB, free: 8.574 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003854/0.006466, allocations: 371.4 kB / 0.7912 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.378e-05/0.00651, allocations: 23.06 kB / 0.7912 GB, free: 8.141 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.337e-05/0.006533, allocations: 12.34 kB / 0.7913 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.006549, allocations: 0.7188 kB / 0.7913 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001164/0.006665, allocations: 135.8 kB / 0.7914 GB, free: 7.957 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.006666, allocations: 0.5 kB / 0.7914 GB, free: 7.957 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001519/0.006818, allocations: 63.36 kB / 0.7914 GB, free: 7.891 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.006851, allocations: 77.11 kB / 0.7915 GB, free: 7.797 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.007004, allocations: 266.7 kB / 0.7918 GB, free: 7.52 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.007017, allocations: 29.7 kB / 0.7918 GB, free: 7.484 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.284e-05/0.00709, allocations: 183.3 kB / 0.792 GB, free: 7.301 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.007107, allocations: 7.953 kB / 0.792 GB, free: 7.293 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-05/0.007136, allocations: 24.12 kB / 0.792 GB, free: 7.262 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.00725, allocations: 0.5 MB / 0.7925 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.153e-05/0.007271, allocations: 8.547 kB / 0.7925 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.872e-05/0.00731, allocations: 65.05 kB / 0.7926 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.356e-05/0.007354, allocations: 33.12 kB / 0.7926 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.007356, allocations: 0 / 0.7926 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.858e-05/0.007434, allocations: 67.16 kB / 0.7927 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.007448, allocations: 8 kB / 0.7927 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.007452, allocations: 0 / 0.7927 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.007467, allocations: 0 / 0.7927 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.071e-05/0.007537, allocations: 11.98 kB / 0.7927 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.007542, allocations: 1.969 kB / 0.7927 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.3e-05/0.007575, allocations: 4 kB / 0.7927 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/0.007583, allocations: 7.938 kB / 0.7927 GB, free: 6.512 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.716e-05/0.00765, allocations: 160.6 kB / 0.7928 GB, free: 6.344 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.007667, allocations: 16.56 kB / 0.7929 GB, free: 6.328 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.979e-05/0.007696, allocations: 17.03 kB / 0.7929 GB, free: 6.312 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.007699, allocations: 6.438 kB / 0.7929 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.007702, allocations: 0 / 0.7929 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.007704, allocations: 0 / 0.7929 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001022/0.007806, allocations: 172.5 kB / 0.793 GB, free: 6.105 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.007808, allocations: 0 / 0.793 GB, free: 6.105 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.709e-05/0.007835, allocations: 11.98 kB / 0.7931 GB, free: 6.094 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.007836, allocations: 1.844 kB / 0.7931 GB, free: 6.094 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.007842, allocations: 3.938 kB / 0.7931 GB, free: 6.09 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.007843, allocations: 3.938 kB / 0.7931 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.007844, allocations: 0 / 0.7931 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.788e-05/0.007932, allocations: 96.28 kB / 0.7932 GB, free: 5.969 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.159e-05/0.007944, allocations: 12.44 kB / 0.7932 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.007957, allocations: 0 / 0.7932 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.793e-05/0.007985, allocations: 8.547 kB / 0.7932 GB, free: 5.949 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.75e-05/0.008023, allocations: 5.688 kB / 0.7932 GB, free: 5.945 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.008042, allocations: 7.984 kB / 0.7932 GB, free: 5.938 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 9.246e-05/0.008135, allocations: 189.5 kB / 0.7934 GB, free: 5.754 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.008135, allocations: 4 kB / 0.7934 GB, free: 5.75 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001574/0.008292, allocations: 22.16 kB / 0.7934 GB, free: 5.73 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001949/0.008487, allocations: 130.7 kB / 0.7935 GB, free: 5.602 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.44e-05/0.008581, allocations: 28.67 kB / 0.7936 GB, free: 5.57 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.008583, allocations: 0 / 0.7936 GB, free: 5.57 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.443e-05/0.008607, allocations: 20.56 kB / 0.7936 GB, free: 5.547 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.008815, allocations: 52.83 kB / 0.7936 GB, free: 5.5 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005539/0.009369, allocations: 280.8 kB / 0.7939 GB, free: 5.195 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.88e-05/0.009407, allocations: 71.33 kB / 0.794 GB, free: 5.105 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.216e-05/0.00945, allocations: 16.17 kB / 0.794 GB, free: 5.094 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.009483, allocations: 12.5 kB / 0.794 GB, free: 5.078 MB / 0.7448 GB Notification: Performance of SimCode: time 5.11e-07/0.009484, allocations: 0 / 0.794 GB, free: 5.078 MB / 0.7448 GB Notification: Performance of Templates: time 0.003586/0.01307, allocations: 1.792 MB / 0.7957 GB, free: 3.34 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.028215889818966]