Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) 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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 114.9 kB / 16.37 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 194.7 kB / 17.3 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.426/2.426, allocations: 437.1 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 59.28 kB / 0.8707 GB, free: 1.461 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2729, allocations: 151.6 MB / 1.019 GB, free: 9.855 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002831/0.2758, allocations: 1.648 MB / 1.02 GB, free: 8.191 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008407/0.2767, allocations: 0.5455 MB / 1.021 GB, free: 7.641 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.155e-05/0.2767, allocations: 0 / 1.021 GB, free: 7.641 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.2769, allocations: 31.72 kB / 1.021 GB, free: 7.609 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002409/0.2772, allocations: 64.67 kB / 1.021 GB, free: 7.547 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.2773, allocations: 67.86 kB / 1.021 GB, free: 7.48 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.2775, allocations: 135.5 kB / 1.021 GB, free: 7.348 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.2777, allocations: 49.45 kB / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.2778, allocations: 55.78 kB / 1.021 GB, free: 7.238 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.2779, allocations: 63.69 kB / 1.021 GB, free: 7.176 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.2779, allocations: 8 kB / 1.021 GB, free: 7.168 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.555e-05/0.278, allocations: 27.94 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.991e-05/0.2781, allocations: 39.89 kB / 1.021 GB, free: 7.102 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.939e-05/0.2781, allocations: 59.55 kB / 1.022 GB, free: 7.043 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001855/0.2783, allocations: 143.4 kB / 1.022 GB, free: 6.902 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2783, allocations: 4 kB / 1.022 GB, free: 6.898 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2783, allocations: 0 / 1.022 GB, free: 6.898 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.2783, allocations: 0 / 1.022 GB, free: 6.898 MB / 0.795 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.0005737/0.2789, allocations: 474.5 kB / 1.022 GB, free: 6.387 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.279, allocations: 8.625 kB / 1.022 GB, free: 6.379 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.041e-05/0.279, allocations: 20.73 kB / 1.022 GB, free: 6.359 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.2793, allocations: 232.9 kB / 1.022 GB, free: 6.09 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.2793, allocations: 4.375 kB / 1.022 GB, free: 6.086 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.2793, allocations: 8.375 kB / 1.022 GB, free: 6.078 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002597/0.2796, allocations: 116.6 kB / 1.022 GB, free: 5.961 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.2796, allocations: 4 kB / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.2796, allocations: 4 kB / 1.022 GB, free: 5.953 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2796, allocations: 0 / 1.022 GB, free: 5.953 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002157/0.2799, allocations: 59.94 kB / 1.023 GB, free: 5.895 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.2804, allocations: 384.5 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/0.2806, allocations: 38.55 kB / 1.023 GB, free: 5.422 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.2807, allocations: 28.91 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.2807, allocations: 0 / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.2809, allocations: 104.9 kB / 1.023 GB, free: 5.27 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 2.474e-06/0.2809, allocations: 3.984 kB / 1.023 GB, free: 5.266 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0004169/0.2813, allocations: 125.4 kB / 1.023 GB, free: 5.137 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.2814, allocations: 81.11 kB / 1.023 GB, free: 5.039 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.2816, allocations: 253 kB / 1.024 GB, free: 4.789 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.2816, allocations: 29.64 kB / 1.024 GB, free: 4.754 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.2817, allocations: 132 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.2818, allocations: 11.89 kB / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.354e-05/0.2818, allocations: 21.7 kB / 1.024 GB, free: 4.582 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.2819, allocations: 322.8 kB / 1.024 GB, free: 4.258 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.282, allocations: 31.91 kB / 1.024 GB, free: 4.227 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.2822, allocations: 51.41 kB / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.2824, allocations: 70.5 kB / 1.024 GB, free: 4.086 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2824, allocations: 0 / 1.024 GB, free: 4.086 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002662/0.2827, allocations: 105.4 kB / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.2827, allocations: 4 kB / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2827, allocations: 0 / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.2827, allocations: 3.938 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.2828, allocations: 20.02 kB / 1.024 GB, free: 3.949 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.2828, allocations: 4 kB / 1.024 GB, free: 3.945 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.526e-05/0.2829, allocations: 7.984 kB / 1.024 GB, free: 3.938 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.515e-06/0.2829, allocations: 4 kB / 1.024 GB, free: 3.934 MB / 0.795 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 9.392e-05/0.283, allocations: 130.5 kB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/0.2831, allocations: 19.72 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.422e-05/0.2831, allocations: 17.23 kB / 1.024 GB, free: 3.766 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2831, allocations: 3.938 kB / 1.024 GB, free: 3.762 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2831, allocations: 4 kB / 1.024 GB, free: 3.758 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.2831, allocations: 0 / 1.024 GB, free: 3.758 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.2833, allocations: 213.6 kB / 1.025 GB, free: 3.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2833, allocations: 3.984 kB / 1.025 GB, free: 3.496 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.117e-05/0.2834, allocations: 11.98 kB / 1.025 GB, free: 3.484 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2834, allocations: 0 / 1.025 GB, free: 3.484 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.2834, allocations: 0 / 1.025 GB, free: 3.484 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2834, allocations: 3.938 kB / 1.025 GB, free: 3.48 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2834, allocations: 0 / 1.025 GB, free: 3.48 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.2837, allocations: 128.8 kB / 1.025 GB, free: 3.336 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.261e-05/0.2838, allocations: 92.86 kB / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.2838, allocations: 0 / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.542e-05/0.2839, allocations: 15.92 kB / 1.025 GB, free: 3.211 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.2839, allocations: 3.984 kB / 1.025 GB, free: 3.207 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.2839, allocations: 15.94 kB / 1.025 GB, free: 3.191 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001584/0.2841, allocations: 188.5 kB / 1.025 GB, free: 3.008 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2841, allocations: 0 / 1.025 GB, free: 3.008 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002189/0.2843, allocations: 20 kB / 1.025 GB, free: 2.988 MB / 0.795 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.0001901/0.2845, allocations: 113.7 kB / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002742/0.2848, allocations: 59.88 kB / 1.025 GB, free: 2.809 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2848, allocations: 0 / 1.025 GB, free: 2.809 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.285, allocations: 31.97 kB / 1.025 GB, free: 2.777 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.2853, allocations: 41.08 kB / 1.025 GB, free: 2.738 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004852/0.2858, allocations: 288.5 kB / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.286, allocations: 0.7157 MB / 1.026 GB, free: 1.684 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 5.963e-05/0.2861, allocations: 16.48 kB / 1.026 GB, free: 1.668 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.805e-05/0.2861, allocations: 23.42 kB / 1.026 GB, free: 1.648 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.2861, allocations: 0 / 1.026 GB, free: 1.648 MB / 0.795 GB Notification: Performance of Templates: time 0.004672/0.2908, allocations: 1.758 MB / 1.028 GB, free: 15.91 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches