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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.002198/0.002198, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002139/0.002139, allocations: 188.4 kB / 16.25 MB, free: 6.637 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.471/1.471, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.791/2.791, allocations: 437 MB / 0.7101 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 67.89 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5893/0.5913, allocations: 151.6 MB / 1.017 GB, free: 2.742 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003095/0.5945, allocations: 1.698 MB / 1.018 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009015/0.5954, allocations: 0.5417 MB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.366e-05/0.5955, allocations: 4 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001907/0.5957, allocations: 23.84 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002289/0.5959, allocations: 55.75 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001543/0.5961, allocations: 59.94 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.5963, allocations: 135.5 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.5964, allocations: 45.45 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.5965, allocations: 59.72 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.5967, allocations: 67.75 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.5967, allocations: 8 kB / 1.019 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.456e-05/0.5968, allocations: 16 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.814e-05/0.5969, allocations: 47.83 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.562e-05/0.5969, allocations: 55.61 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.5971, allocations: 149.4 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.5972, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.203e-06/0.5972, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.5972, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 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.0006552/0.5978, allocations: 470.5 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.5979, allocations: 8.031 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.04e-05/0.5979, allocations: 16.75 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002647/0.5982, allocations: 240.8 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.5982, allocations: 384 / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.5982, allocations: 8.375 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.5985, allocations: 113.7 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.5985, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.5986, allocations: 4 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.5986, allocations: 4 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.5988, allocations: 63.94 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006104/0.5994, allocations: 388.4 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.5996, allocations: 42.53 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.5997, allocations: 36.77 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.5998, allocations: 4 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.6, allocations: 97.08 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.6, allocations: 0 / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004415/0.6005, allocations: 121.4 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.6006, allocations: 81.05 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/0.6008, allocations: 256.9 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.6009, allocations: 29.7 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.601, allocations: 124.1 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.601, allocations: 19.73 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.249e-05/0.601, allocations: 13.72 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.6012, allocations: 330.8 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.6013, allocations: 27.97 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.6015, allocations: 51.41 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002197/0.6017, allocations: 70.45 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6017, allocations: 32 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002759/0.602, allocations: 97.41 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.602, allocations: 7.984 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.602, allocations: 4 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.602, allocations: 3.938 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.6021, allocations: 19.98 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.6022, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.319e-05/0.6023, allocations: 20.02 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.575e-06/0.6023, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 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.0001062/0.6024, allocations: 125.8 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.273e-05/0.6024, allocations: 19.81 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.387e-05/0.6025, allocations: 17.25 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.6025, allocations: 3.938 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.6025, allocations: 3.984 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.6025, allocations: 0 / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.6027, allocations: 213.6 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.6027, allocations: 4 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.372e-05/0.6028, allocations: 11.92 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.6028, allocations: 4 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.709e-06/0.6028, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.6028, allocations: 7.875 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.6028, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.6031, allocations: 124.8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.994e-05/0.6032, allocations: 96.91 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.6032, allocations: 0 / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.547e-05/0.6033, allocations: 11.92 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.15e-05/0.6034, allocations: 4 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.6034, allocations: 7.984 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001823/0.6036, allocations: 188.5 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6036, allocations: 0 / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000223/0.6038, allocations: 20 kB / 1.023 GB, free: 11.86 MB / 0.7794 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.0002356/0.6041, allocations: 117.6 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000298/0.6044, allocations: 63.94 kB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6044, allocations: 0 / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.6045, allocations: 31.91 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.6048, allocations: 51.7 kB / 1.023 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005372/0.6053, allocations: 328.4 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.6057, allocations: 0.7197 MB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.454e-05/0.6058, allocations: 16.55 kB / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.71e-05/0.6058, allocations: 11.44 kB / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.6058, allocations: 0 / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of Templates: time 0.00501/0.6108, allocations: 1.656 MB / 1.026 GB, free: 8.836 MB / 0.7794 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=400 -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/jenkins/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