Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001516/0.001516, allocations: 117.1 kB / 16.37 MB, free: 6.012 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.001639/0.001639, allocations: 190.9 kB / 17.31 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.529/2.529, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 63.62 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2798, allocations: 153 MB / 1.027 GB, free: 2.078 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002911/0.2828, allocations: 1.66 MB / 1.028 GB, free: 424 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008639/0.2836, allocations: 0.5532 MB / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.593e-05/0.2837, allocations: 0 / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.2839, allocations: 23.8 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002388/0.2841, allocations: 63.66 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001461/0.2843, allocations: 67.86 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.2845, allocations: 123.6 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.2846, allocations: 57.39 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.2848, allocations: 55.77 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.2849, allocations: 63.69 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.2849, allocations: 8 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.752e-05/0.285, allocations: 28 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.2851, allocations: 51.77 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.992e-05/0.2852, allocations: 55.61 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.2853, allocations: 139.4 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2854, allocations: 0 / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.123e-06/0.2854, allocations: 0 / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.2854, allocations: 4 kB / 1.03 GB, free: 15.12 MB / 0.8106 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.0005914/0.286, allocations: 466.5 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.286, allocations: 19.97 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.619e-05/0.2861, allocations: 16.75 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.2863, allocations: 240.8 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.2864, allocations: 8.375 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.2864, allocations: 4.375 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002584/0.2866, allocations: 109.9 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.2867, allocations: 4 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.2867, allocations: 7.984 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2867, allocations: 0 / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.2869, allocations: 67.94 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005912/0.2875, allocations: 380.4 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.2877, allocations: 42.55 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.2878, allocations: 24.91 kB / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.2878, allocations: 0 / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000214/0.288, allocations: 109 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 2.604e-06/0.288, allocations: 0 / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004094/0.2884, allocations: 125.3 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.2885, allocations: 77.11 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.2888, allocations: 253 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.2888, allocations: 29.69 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.749e-05/0.2889, allocations: 132 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.2889, allocations: 7.906 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.966e-05/0.289, allocations: 17.7 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.2891, allocations: 330.8 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.2892, allocations: 19.97 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.2893, allocations: 59.34 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.2895, allocations: 58.53 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2895, allocations: 0 / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003609/0.2899, allocations: 105.4 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2899, allocations: 8 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.2899, allocations: 288 / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.29, allocations: 3.938 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.2901, allocations: 15.92 kB / 1.032 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.2901, allocations: 4 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.525e-05/0.2902, allocations: 12.08 kB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.2902, allocations: 4 kB / 1.032 GB, free: 12.15 MB / 0.8106 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 0.0001019/0.2903, allocations: 129.8 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.2903, allocations: 19.72 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.253e-05/0.2904, allocations: 21.23 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2904, allocations: 3.938 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2904, allocations: 0 / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.2904, allocations: 0 / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.2906, allocations: 225.5 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2906, allocations: 0 / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.168e-05/0.2907, allocations: 15.98 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2907, allocations: 0 / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.2907, allocations: 3.984 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2907, allocations: 3.938 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2907, allocations: 0 / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/0.291, allocations: 124.8 kB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.274e-05/0.291, allocations: 92.86 kB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.2911, allocations: 3.938 kB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.438e-05/0.2912, allocations: 19.92 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.2912, allocations: 3.984 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.2912, allocations: 4 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001831/0.2914, allocations: 188.5 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of sort global known variables: time 5.62e-07/0.2914, allocations: 0 / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002245/0.2917, allocations: 24 kB / 1.033 GB, free: 11.2 MB / 0.8106 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.0002185/0.2919, allocations: 129.7 kB / 1.033 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002701/0.2922, allocations: 56.02 kB / 1.033 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.2922, allocations: 4.062 kB / 1.033 GB, free: 11 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.2923, allocations: 27.97 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.2926, allocations: 41.69 kB / 1.033 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.2931, allocations: 272.3 kB / 1.034 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.2935, allocations: 0.7315 MB / 1.034 GB, free: 9.895 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.726e-05/0.2936, allocations: 16.48 kB / 1.034 GB, free: 9.875 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.18e-05/0.2936, allocations: 19.42 kB / 1.034 GB, free: 9.855 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.2936, allocations: 0 / 1.034 GB, free: 9.855 MB / 0.8106 GB Notification: Performance of Templates: time 0.005407/0.299, allocations: 1.755 MB / 1.036 GB, free: 8.125 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches