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.001436/0.001436, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 196.2 kB / 16.53 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.723/2.723, allocations: 472.6 MB / 0.7451 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 70.28 kB / 0.912 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3211, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003607/0.3247, allocations: 1.637 MB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.3259, allocations: 0.5571 MB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.326, allocations: 4 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.3263, allocations: 23.73 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003079/0.3266, allocations: 59.73 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002087/0.3268, allocations: 63.84 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002122/0.3271, allocations: 123.6 kB / 1.071 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001968/0.3273, allocations: 61.38 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.3274, allocations: 63.72 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001592/0.3276, allocations: 59.75 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.3276, allocations: 8 kB / 1.071 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.951e-05/0.3277, allocations: 27.92 kB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.3279, allocations: 47.83 kB / 1.071 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.435e-05/0.3279, allocations: 55.61 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002275/0.3282, allocations: 143.7 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3282, allocations: 3.938 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3282, allocations: 0 / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.865e-06/0.3282, allocations: 0 / 1.071 GB, free: 7.5 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.0007004/0.3289, allocations: 466.7 kB / 1.072 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.329, allocations: 8.031 kB / 1.072 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/0.329, allocations: 20.75 kB / 1.072 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.3293, allocations: 236.8 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.313e-06/0.3294, allocations: 384 / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.3294, allocations: 8.375 kB / 1.072 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.3297, allocations: 112.9 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.3297, allocations: 0 / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.3297, allocations: 4 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3298, allocations: 7.938 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002403/0.33, allocations: 67.88 kB / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006422/0.3306, allocations: 376.5 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.3308, allocations: 46.48 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.3309, allocations: 32.89 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.331, allocations: 3.984 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002939/0.3313, allocations: 89.09 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3313, allocations: 0 / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004663/0.3317, allocations: 133.3 kB / 1.073 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.3318, allocations: 77.11 kB / 1.073 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.3321, allocations: 253 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.3321, allocations: 29.7 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.192e-05/0.3322, allocations: 128 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/0.3322, allocations: 7.891 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.042e-05/0.3323, allocations: 21.72 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3324, allocations: 322.8 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.3325, allocations: 27.97 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.3327, allocations: 47.41 kB / 1.073 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.3329, allocations: 70.5 kB / 1.074 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3329, allocations: 0 / 1.074 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002976/0.3332, allocations: 105.4 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.3332, allocations: 9.406 kB / 1.074 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3332, allocations: 3.938 kB / 1.074 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.3333, allocations: 3.938 kB / 1.074 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.3334, allocations: 11.98 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.3334, allocations: 3.984 kB / 1.074 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.699e-05/0.3335, allocations: 11.91 kB / 1.074 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.3335, allocations: 11.98 kB / 1.074 GB, free: 4.547 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 0.0001289/0.3337, allocations: 135.6 kB / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.3337, allocations: 19.8 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.902e-05/0.3338, allocations: 17.25 kB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.3338, allocations: 3.938 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3338, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.3338, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001895/0.334, allocations: 221.5 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.334, allocations: 0 / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.448e-05/0.3341, allocations: 11.98 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3341, allocations: 4 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-06/0.3341, allocations: 0 / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.3341, allocations: 3.938 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3341, allocations: 0 / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.3345, allocations: 120.9 kB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.262e-05/0.3345, allocations: 96.84 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.478e-05/0.3346, allocations: 4 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.894e-05/0.3346, allocations: 15.92 kB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.409e-05/0.3347, allocations: 7.938 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.3347, allocations: 4 kB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000184/0.3349, allocations: 188.5 kB / 1.075 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3349, allocations: 0 / 1.075 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002451/0.3352, allocations: 20 kB / 1.075 GB, free: 3.594 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.0002871/0.3355, allocations: 139.1 kB / 1.075 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003112/0.3358, allocations: 55.94 kB / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3358, allocations: 0 / 1.075 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.336, allocations: 32.09 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.3363, allocations: 49.47 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006369/0.3369, allocations: 276 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.3373, allocations: 0.7158 MB / 1.076 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.134e-05/0.3374, allocations: 20.53 kB / 1.076 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.278e-05/0.3374, allocations: 19.44 kB / 1.076 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of SimCode: time 7.51e-07/0.3374, allocations: 0 / 1.076 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of Templates: time 0.005441/0.3429, allocations: 1.766 MB / 1.078 GB, free: 0.5078 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