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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001193/0.001193, allocations: 116.4 kB / 16.37 MB, free: 6.43 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.001223/0.001223, allocations: 196.3 kB / 17.31 MB, free: 5.777 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.2/1.2, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.022/2.022, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 62.45 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2266, allocations: 140.4 MB / 0.9511 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002741/0.2294, allocations: 1.632 MB / 0.9527 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008933/0.2303, allocations: 0.5455 MB / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.908e-05/0.2304, allocations: 4 kB / 0.9533 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.2306, allocations: 31.73 kB / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.2308, allocations: 67.72 kB / 0.9534 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001602/0.231, allocations: 63.86 kB / 0.9534 GB, free: 5.68 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001787/0.2312, allocations: 135.5 kB / 0.9535 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.2313, allocations: 49.45 kB / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.2315, allocations: 55.83 kB / 0.9536 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.2316, allocations: 63.69 kB / 0.9537 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.2316, allocations: 8 kB / 0.9537 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.842e-05/0.2317, allocations: 23.94 kB / 0.9537 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.114e-05/0.2318, allocations: 43.83 kB / 0.9538 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.445e-05/0.2318, allocations: 55.61 kB / 0.9538 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.232, allocations: 147.4 kB / 0.954 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.232, allocations: 0 / 0.954 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.083e-06/0.232, allocations: 0 / 0.954 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.232, allocations: 0 / 0.954 GB, free: 5.102 MB / 0.7325 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.000563/0.2326, allocations: 478.5 kB / 0.9544 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.2326, allocations: 12.03 kB / 0.9544 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.693e-05/0.2327, allocations: 16.75 kB / 0.9545 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.233, allocations: 236.8 kB / 0.9547 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.233, allocations: 8.375 kB / 0.9547 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.233, allocations: 8.375 kB / 0.9547 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002484/0.2333, allocations: 109.9 kB / 0.9548 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.2333, allocations: 7.922 kB / 0.9548 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.2333, allocations: 8 kB / 0.9548 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2333, allocations: 0 / 0.9548 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.2335, allocations: 59.94 kB / 0.9549 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005293/0.2341, allocations: 384.5 kB / 0.9552 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.2342, allocations: 38.53 kB / 0.9553 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.251e-05/0.2343, allocations: 28.91 kB / 0.9553 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.2343, allocations: 0 / 0.9553 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001971/0.2345, allocations: 105 kB / 0.9554 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.2345, allocations: 0 / 0.9554 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003745/0.2349, allocations: 121.4 kB / 0.9555 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.235, allocations: 81.11 kB / 0.9556 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002208/0.2352, allocations: 252.9 kB / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.2352, allocations: 33.69 kB / 0.9559 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.309e-05/0.2353, allocations: 131.9 kB / 0.956 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.2353, allocations: 3.906 kB / 0.956 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.2354, allocations: 21.7 kB / 0.956 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.2355, allocations: 322.8 kB / 0.9563 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.963e-05/0.2356, allocations: 35.91 kB / 0.9564 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.2357, allocations: 47.41 kB / 0.9564 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001809/0.2359, allocations: 66.56 kB / 0.9565 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2359, allocations: 0 / 0.9565 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002444/0.2361, allocations: 101.4 kB / 0.9566 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.2362, allocations: 8 kB / 0.9566 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.2362, allocations: 0 / 0.9566 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.2362, allocations: 7.875 kB / 0.9566 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.613e-05/0.2363, allocations: 16.08 kB / 0.9566 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.2363, allocations: 0 / 0.9566 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.849e-05/0.2364, allocations: 11.98 kB / 0.9566 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.816e-06/0.2364, allocations: 4 kB / 0.9566 GB, free: 2.129 MB / 0.7325 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.443e-05/0.2365, allocations: 131.7 kB / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.489e-05/0.2365, allocations: 15.81 kB / 0.9568 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.874e-05/0.2366, allocations: 21.23 kB / 0.9568 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.2366, allocations: 3.938 kB / 0.9568 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.2366, allocations: 7.938 kB / 0.9568 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2366, allocations: 0 / 0.9568 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.2367, allocations: 217.6 kB / 0.957 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2367, allocations: 0 / 0.957 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.35e-05/0.2368, allocations: 11.98 kB / 0.957 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.2369, allocations: 3.984 kB / 0.957 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.126e-06/0.2369, allocations: 4 kB / 0.957 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.2369, allocations: 3.938 kB / 0.957 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2369, allocations: 0 / 0.957 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.2371, allocations: 128.7 kB / 0.9571 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.724e-05/0.2372, allocations: 96.86 kB / 0.9572 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.2372, allocations: 0 / 0.9572 GB, free: 1.406 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.5e-05/0.2373, allocations: 15.92 kB / 0.9572 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.2373, allocations: 7.984 kB / 0.9573 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.2374, allocations: 4 kB / 0.9573 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001492/0.2375, allocations: 192.5 kB / 0.9574 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2375, allocations: 0 / 0.9574 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002001/0.2377, allocations: 20 kB / 0.9575 GB, free: 1.172 MB / 0.7325 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.000187/0.2379, allocations: 125.2 kB / 0.9576 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002383/0.2382, allocations: 59.89 kB / 0.9576 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2382, allocations: 3.938 kB / 0.9576 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.431e-05/0.2383, allocations: 23.97 kB / 0.9577 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.2385, allocations: 51.27 kB / 0.9577 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004391/0.239, allocations: 276.4 kB / 0.958 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.2393, allocations: 0.7273 MB / 0.9587 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.731e-05/0.2393, allocations: 12.55 kB / 0.9587 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.589e-05/0.2394, allocations: 23.42 kB / 0.9587 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of SimCode: time 2.8e-07/0.2394, allocations: 0 / 0.9587 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of Templates: time 0.004204/0.2436, allocations: 1.755 MB / 0.9604 GB, free: 14.09 MB / 0.7481 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 -s cvode -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