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.007166/0.007166, allocations: 103.8 kB / 15.74 MB, free: 6.055 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.001299/0.001299, allocations: 195.5 kB / 16.68 MB, free: 5.965 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.241/1.241, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.212/2.212, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 55.91 kB / 0.9508 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9067/0.908, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003203/0.9113, allocations: 1.637 MB / 1.089 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009587/0.9123, allocations: 0.5375 MB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.9124, allocations: 6.406 kB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002058/0.9126, allocations: 27.42 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.9129, allocations: 69.34 kB / 1.09 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.9131, allocations: 61.55 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.9134, allocations: 133.8 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.9136, allocations: 47 kB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.9138, allocations: 62.3 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.9139, allocations: 62.81 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.272e-05/0.9139, allocations: 7.75 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.115e-05/0.914, allocations: 29.83 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.9141, allocations: 37.05 kB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.637e-05/0.9142, allocations: 63.61 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.9145, allocations: 147.9 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.9145, allocations: 0.7969 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.004e-06/0.9145, allocations: 4 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.835e-06/0.9145, allocations: 1.312 kB / 1.091 GB, free: 3.621 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.0006902/0.9152, allocations: 463 kB / 1.091 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.9153, allocations: 10.33 kB / 1.091 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.318e-05/0.9154, allocations: 21.75 kB / 1.091 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.9157, allocations: 242.4 kB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.9157, allocations: 7.219 kB / 1.091 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.175e-05/0.9157, allocations: 4.297 kB / 1.091 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.9161, allocations: 107.2 kB / 1.092 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.9161, allocations: 0 / 1.092 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.9161, allocations: 5.828 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.9161, allocations: 1.938 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/0.9164, allocations: 66.59 kB / 1.092 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006813/0.9171, allocations: 385 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.9173, allocations: 44 kB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.9174, allocations: 32.81 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.9174, allocations: 0.8438 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002478/0.9177, allocations: 92.8 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.9177, allocations: 0.8438 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004759/0.9182, allocations: 130.5 kB / 1.092 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.9182, allocations: 78.11 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.9185, allocations: 255.2 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.9185, allocations: 30.86 kB / 1.093 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.795e-05/0.9186, allocations: 126.6 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.9186, allocations: 6.047 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.9187, allocations: 19.25 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.618e-05/0.9187, allocations: 331.5 kB / 1.093 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.9189, allocations: 24.77 kB / 1.093 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.919, allocations: 47.39 kB / 1.093 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.9192, allocations: 73.11 kB / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.9192, allocations: 0 / 1.093 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002843/0.9195, allocations: 101.8 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.9196, allocations: 6.141 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.9196, allocations: 4.719 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.9196, allocations: 5.25 kB / 1.093 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.9197, allocations: 16.36 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.9197, allocations: 1.859 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.021e-05/0.9198, allocations: 13.94 kB / 1.093 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.9198, allocations: 2.172 kB / 1.093 GB, free: 1.488 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 9.131e-05/0.9199, allocations: 131.2 kB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.089e-05/0.92, allocations: 24.42 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.108e-05/0.92, allocations: 18.94 kB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.92, allocations: 4.75 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.92, allocations: 0 / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.92, allocations: 9.422 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.9202, allocations: 212.8 kB / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.9202, allocations: 0 / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.148e-05/0.9203, allocations: 12.02 kB / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.9203, allocations: 0 / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.9203, allocations: 1.641 kB / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.9203, allocations: 8.906 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.9204, allocations: 4 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000306/0.9207, allocations: 122 kB / 1.094 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.094e-05/0.9207, allocations: 89.38 kB / 1.094 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.9207, allocations: 1.547 kB / 1.094 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.834e-05/0.9208, allocations: 17.98 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.394e-05/0.9209, allocations: 11.2 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.9209, allocations: 5.844 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002051/0.9211, allocations: 186.5 kB / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.433e-06/0.9211, allocations: 0 / 1.094 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002342/0.9214, allocations: 23.34 kB / 1.094 GB, free: 0.8008 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.0002896/0.9217, allocations: 131.5 kB / 1.094 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003335/0.922, allocations: 49.67 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.922, allocations: 0.7812 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.9222, allocations: 32.34 kB / 1.094 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.9225, allocations: 48.52 kB / 1.094 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005803/0.9231, allocations: 282.5 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.9234, allocations: 0.7154 MB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.449e-05/0.9235, allocations: 19.55 kB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/0.9235, allocations: 23.22 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.9235, allocations: 0 / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of Templates: time 0.005882/0.9294, allocations: 1.775 MB / 1.097 GB, free: 15.55 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/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