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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001463/0.001463, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001758/0.001758, allocations: 189.3 kB / 16.25 MB, free: 6.625 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.393/1.393, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.728/2.728, allocations: 472.6 MB / 0.7448 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 64.52 kB / 0.9116 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3144, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003117/0.3176, allocations: 1.707 MB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000804/0.3184, allocations: 0.5455 MB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.287e-05/0.3185, allocations: 4 kB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.3187, allocations: 19.84 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.3189, allocations: 63.75 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001485/0.3191, allocations: 51.94 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001736/0.3192, allocations: 135.5 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.3194, allocations: 57.38 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.3195, allocations: 59.77 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.3197, allocations: 59.7 kB / 1.07 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.3197, allocations: 8 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.743e-05/0.3198, allocations: 27.94 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.203e-05/0.3198, allocations: 39.89 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.044e-05/0.3199, allocations: 59.55 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.3201, allocations: 143.7 kB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3201, allocations: 0 / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3201, allocations: 0 / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.3201, allocations: 0 / 1.071 GB, free: 7.785 MB / 0.8262 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.0006125/0.3208, allocations: 470.6 kB / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.3208, allocations: 8.031 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.975e-05/0.3209, allocations: 20.75 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.3211, allocations: 228.9 kB / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.3211, allocations: 8.375 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.3211, allocations: 4.312 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002627/0.3214, allocations: 121.9 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.3214, allocations: 0 / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.3215, allocations: 8 kB / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3215, allocations: 0 / 1.071 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000207/0.3217, allocations: 59.94 kB / 1.072 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.3222, allocations: 384.4 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.3224, allocations: 38.55 kB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.3225, allocations: 32.89 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.3225, allocations: 0 / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.3227, allocations: 105 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3228, allocations: 0 / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.000401/0.3232, allocations: 121.4 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.3232, allocations: 77.11 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.3235, allocations: 257 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.3235, allocations: 29.7 kB / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.849e-05/0.3236, allocations: 128 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.845e-05/0.3236, allocations: 11.89 kB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/0.3236, allocations: 17.72 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3237, allocations: 322.8 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.3239, allocations: 23.97 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.324, allocations: 55.34 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.3242, allocations: 62.56 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3242, allocations: 4 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002497/0.3244, allocations: 105.4 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.3245, allocations: 5.25 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3245, allocations: 7.922 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.3245, allocations: 3.938 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.3246, allocations: 11.98 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3246, allocations: 12.03 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.205e-05/0.3247, allocations: 11.89 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.3247, allocations: 4.281 kB / 1.073 GB, free: 4.828 MB / 0.8262 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.316e-05/0.3248, allocations: 129.8 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.3249, allocations: 19.8 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.995e-05/0.3249, allocations: 21.19 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3249, allocations: 3.938 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3249, allocations: 0 / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.3249, allocations: 7.984 kB / 1.073 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001559/0.3251, allocations: 213.6 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.3251, allocations: 0 / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.3252, allocations: 15.98 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3252, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.3252, allocations: 4 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.3252, allocations: 3.938 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3252, allocations: 0 / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002649/0.3255, allocations: 124.8 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.606e-05/0.3256, allocations: 96.84 kB / 1.074 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.3256, allocations: 0 / 1.074 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.969e-05/0.3257, allocations: 15.92 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/0.3257, allocations: 4 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.3258, allocations: 4 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000159/0.3259, allocations: 188.5 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3259, allocations: 4 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000206/0.3261, allocations: 20 kB / 1.074 GB, free: 3.871 MB / 0.8262 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.0001989/0.3263, allocations: 116.5 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002759/0.3266, allocations: 63.88 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3266, allocations: 3.984 kB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.3267, allocations: 23.97 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.327, allocations: 50.31 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004839/0.3275, allocations: 320.3 kB / 1.075 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.3278, allocations: 0.7197 MB / 1.075 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.003e-05/0.3279, allocations: 24.66 kB / 1.075 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.3279, allocations: 19.44 kB / 1.075 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3279, allocations: 0 / 1.075 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of Templates: time 0.004219/0.3321, allocations: 1.653 MB / 1.077 GB, free: 0.8594 MB / 0.8262 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 -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/jenkins/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