Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.006954/0.006954, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001507/0.001507, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.298/1.298, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.351/2.351, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 62.34 kB / 0.9508 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3256, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003075/0.3287, allocations: 1.651 MB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009706/0.3297, allocations: 0.5391 MB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.378e-05/0.3298, allocations: 4 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.33, allocations: 31.72 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002551/0.3303, allocations: 59.73 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.3304, allocations: 63.86 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001861/0.3306, allocations: 135.5 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.3308, allocations: 61.44 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.3309, allocations: 51.78 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.331, allocations: 59.75 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.3311, allocations: 11.94 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.189e-05/0.3311, allocations: 23.94 kB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.426e-05/0.3312, allocations: 39.89 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.661e-05/0.3313, allocations: 67.55 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.3315, allocations: 143.4 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3315, allocations: 4 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3315, allocations: 0 / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.3315, allocations: 0 / 1.091 GB, free: 14.56 MB / 0.8575 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.0005386/0.3321, allocations: 470.6 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 2.805e-05/0.3321, allocations: 8.031 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.178e-05/0.3322, allocations: 16.75 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.3324, allocations: 248.7 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.3324, allocations: 4.375 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.3325, allocations: 8.375 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.3327, allocations: 113.2 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.3327, allocations: 4 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.3327, allocations: 4 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.3328, allocations: 0 / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002018/0.333, allocations: 63.94 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005342/0.3335, allocations: 388.4 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/0.3336, allocations: 38.55 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.088e-05/0.3337, allocations: 32.91 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.3338, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.334, allocations: 97.02 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.334, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003748/0.3343, allocations: 129.4 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.3345, allocations: 77.11 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002831/0.3347, allocations: 256.9 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.3348, allocations: 25.7 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.112e-05/0.3349, allocations: 132 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.3349, allocations: 7.906 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.3349, allocations: 21.7 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.335, allocations: 326.8 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.901e-05/0.3352, allocations: 27.91 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.3353, allocations: 47.41 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.3355, allocations: 66.56 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3355, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002442/0.3357, allocations: 113.4 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.3357, allocations: 4 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3358, allocations: 0 / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3358, allocations: 7.875 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.362e-05/0.3359, allocations: 11.98 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.3359, allocations: 4 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.62e-05/0.336, allocations: 7.984 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.336, allocations: 4 kB / 1.093 GB, free: 11.6 MB / 0.8575 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.0001068/0.3361, allocations: 133.8 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.3361, allocations: 23.72 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.378e-05/0.3362, allocations: 17.23 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3362, allocations: 3.938 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.3362, allocations: 0 / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.3362, allocations: 0 / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.3364, allocations: 217.6 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3364, allocations: 3.984 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/0.3365, allocations: 15.98 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3365, allocations: 0 / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.3365, allocations: 4 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.3365, allocations: 3.938 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3365, allocations: 0 / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.3368, allocations: 124.8 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.725e-05/0.3368, allocations: 89.25 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.3369, allocations: 0 / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.629e-05/0.337, allocations: 19.92 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/0.337, allocations: 7.969 kB / 1.094 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.689e-05/0.337, allocations: 12 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001787/0.3372, allocations: 184.5 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3372, allocations: 0 / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002096/0.3374, allocations: 20 kB / 1.094 GB, free: 10.64 MB / 0.8575 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.0002135/0.3377, allocations: 124.8 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002508/0.3379, allocations: 51.89 kB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3379, allocations: 3.938 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.338, allocations: 36.16 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.3383, allocations: 35.14 kB / 1.094 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005552/0.3389, allocations: 284.3 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.3392, allocations: 0.7157 MB / 1.095 GB, free: 9.348 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.768e-05/0.3393, allocations: 20.53 kB / 1.095 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.639e-05/0.3393, allocations: 23.42 kB / 1.095 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of SimCode: time 4.31e-07/0.3393, allocations: 0 / 1.095 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of Templates: time 0.004636/0.3439, allocations: 1.767 MB / 1.097 GB, free: 7.562 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches