Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009954/0.0009955, allocations: 104 kB / 16.35 MB, free: 5.824 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.0009369/0.0009368, allocations: 190.2 kB / 17.29 MB, free: 5.48 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.188/1.188, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.198/2.198, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 74.27 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2583, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002941/0.2613, allocations: 1.653 MB / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008339/0.2621, allocations: 0.557 MB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.033e-05/0.2622, allocations: 0 / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.2624, allocations: 35.7 kB / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002449/0.2627, allocations: 63.69 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001459/0.2628, allocations: 59.92 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.263, allocations: 139.5 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.2631, allocations: 49.47 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.782e-05/0.2632, allocations: 55.77 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.492e-05/0.2633, allocations: 63.64 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.2634, allocations: 8 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.208e-05/0.2634, allocations: 27.98 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.523e-05/0.2635, allocations: 35.91 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.961e-05/0.2636, allocations: 63.53 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.2637, allocations: 143.4 kB / 1.03 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2638, allocations: 4 kB / 1.03 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.472e-06/0.2638, allocations: 4 kB / 1.03 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.2638, allocations: 0 / 1.03 GB, free: 15.1 MB / 0.8106 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.0005303/0.2643, allocations: 466.6 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.2643, allocations: 8.031 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.273e-05/0.2644, allocations: 20.69 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.2646, allocations: 240.7 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.308e-06/0.2647, allocations: 8.375 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.2647, allocations: 8.375 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002517/0.2649, allocations: 105.9 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.2649, allocations: 0 / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.265, allocations: 8 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.265, allocations: 0 / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.2652, allocations: 71.92 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000549/0.2657, allocations: 384.4 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001278/0.2659, allocations: 42.48 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.515e-05/0.266, allocations: 28.91 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.266, allocations: 7.984 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001964/0.2662, allocations: 89.09 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2662, allocations: 0 / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003864/0.2666, allocations: 129.4 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.2667, allocations: 81.05 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/0.2669, allocations: 253 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.2669, allocations: 29.7 kB / 1.031 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.379e-05/0.267, allocations: 128 kB / 1.032 GB, free: 12.81 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.497e-05/0.267, allocations: 7.906 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.545e-05/0.267, allocations: 25.64 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.354e-05/0.2671, allocations: 322.8 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.834e-05/0.2672, allocations: 27.97 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.861e-05/0.2673, allocations: 47.41 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.2675, allocations: 70.5 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2675, allocations: 3.938 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002357/0.2678, allocations: 105.4 kB / 1.032 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.2678, allocations: 4 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.2678, allocations: 4.094 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.2678, allocations: 3.938 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.335e-05/0.2679, allocations: 11.98 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2679, allocations: 4 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.609e-05/0.268, allocations: 7.984 kB / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.268, allocations: 4 kB / 1.032 GB, free: 12.13 MB / 0.8106 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 8.552e-05/0.2681, allocations: 125.8 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.622e-05/0.2682, allocations: 23.72 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.2682, allocations: 21.23 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2682, allocations: 3.938 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.2682, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.2682, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.2683, allocations: 217.6 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2684, allocations: 4 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.455e-05/0.2684, allocations: 15.92 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.2684, allocations: 0 / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.2685, allocations: 0 / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.2685, allocations: 3.938 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2685, allocations: 4 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.2687, allocations: 121.2 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.343e-05/0.2688, allocations: 92.86 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.2688, allocations: 4.031 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.481e-05/0.2689, allocations: 15.92 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.2689, allocations: 11.98 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.2689, allocations: 8 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001457/0.2691, allocations: 184.5 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2691, allocations: 0 / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001974/0.2693, allocations: 20 kB / 1.033 GB, free: 11.18 MB / 0.8106 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.0001988/0.2695, allocations: 134.3 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002417/0.2698, allocations: 55.88 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2698, allocations: 0 / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.337e-05/0.2699, allocations: 23.98 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.2701, allocations: 47.89 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004146/0.2705, allocations: 288.2 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.2708, allocations: 0.7119 MB / 1.034 GB, free: 9.883 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.729e-05/0.2708, allocations: 20.52 kB / 1.034 GB, free: 9.859 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.193e-05/0.2709, allocations: 19.44 kB / 1.034 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.2709, allocations: 4 kB / 1.034 GB, free: 9.836 MB / 0.8106 GB Notification: Performance of Templates: time 0.003886/0.2748, allocations: 1.767 MB / 1.036 GB, free: 8.098 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches