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.001464/0.001464, allocations: 110.7 kB / 16.42 MB, free: 6.512 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: 189.5 kB / 17.35 MB, free: 5.738 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.495/1.495, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.224/2.224, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 59.91 kB / 0.9515 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7454/0.7467, allocations: 140.4 MB / 1.089 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002505/0.7492, allocations: 1.646 MB / 1.09 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008116/0.7501, allocations: 0.5369 MB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.554e-05/0.7502, allocations: 7.5 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.7503, allocations: 22.3 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.7506, allocations: 65.48 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.7507, allocations: 68.97 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001827/0.7509, allocations: 127.1 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.7511, allocations: 51.62 kB / 1.091 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.7512, allocations: 58.84 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.7514, allocations: 61.77 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.951e-05/0.7514, allocations: 8.938 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.189e-05/0.7515, allocations: 25.17 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.914e-05/0.7516, allocations: 44.64 kB / 1.091 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.215e-05/0.7516, allocations: 59.92 kB / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.7518, allocations: 143.5 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.7518, allocations: 1.031 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.292e-06/0.7519, allocations: 4 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.698e-06/0.7519, allocations: 0 / 1.091 GB, free: 3.617 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.000644/0.7525, allocations: 464.3 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.7526, allocations: 9.672 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.108e-05/0.7526, allocations: 17.84 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.753, allocations: 243.9 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.753, allocations: 9.469 kB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.753, allocations: 4.625 kB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003287/0.7534, allocations: 110.9 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.7534, allocations: 1.125 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.7534, allocations: 5 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.7534, allocations: 1.562 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002737/0.7537, allocations: 75.55 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006546/0.7544, allocations: 377.2 kB / 1.093 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.7545, allocations: 43.59 kB / 1.093 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.7547, allocations: 24.25 kB / 1.093 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.7547, allocations: 5.672 kB / 1.093 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.7549, allocations: 97.11 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.423e-06/0.7549, allocations: 0 / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004911/0.7554, allocations: 126.1 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.7555, allocations: 81.73 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002797/0.7558, allocations: 255.2 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.7558, allocations: 26.39 kB / 1.093 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.452e-05/0.7559, allocations: 127.4 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.7559, allocations: 6.25 kB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.571e-05/0.7559, allocations: 17.92 kB / 1.093 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.098e-05/0.756, allocations: 332.8 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.7561, allocations: 25 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/0.7562, allocations: 47.03 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002172/0.7564, allocations: 73.45 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.7565, allocations: 0 / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002808/0.7567, allocations: 101.4 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.7568, allocations: 6.281 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.7568, allocations: 4.859 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.7568, allocations: 9.469 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.7569, allocations: 15.64 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.7569, allocations: 1.641 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.42e-05/0.757, allocations: 14.39 kB / 1.094 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.757, allocations: 2.219 kB / 1.094 GB, free: 1.48 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 7.72e-05/0.7571, allocations: 132.2 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.7572, allocations: 19.53 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.418e-05/0.7572, allocations: 26.2 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.7572, allocations: 4.688 kB / 1.094 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.7572, allocations: 0.7969 kB / 1.094 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.012e-05/0.7573, allocations: 93.73 kB / 1.094 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.7573, allocations: 1.516 kB / 1.094 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.171e-05/0.7574, allocations: 9.703 kB / 1.094 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.7574, allocations: 3.703 kB / 1.094 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003147/0.7578, allocations: 168.3 kB / 1.095 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000296/0.7581, allocations: 272.1 kB / 1.095 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001185/0.7582, allocations: 30.66 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001677/0.7584, allocations: 190.7 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of Backend: time 5.11e-07/0.7584, allocations: 3.938 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006305/0.759, allocations: 160.9 kB / 1.095 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0006064/0.7596, allocations: 0.7381 MB / 1.096 GB, free: 4 kB / 0.8575 GB Notification: Performance of Templates: time 0.005879/0.7655, allocations: 1.929 MB / 1.098 GB, free: 15.79 MB / 0.8731 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/jenkins1/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