Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 87.69 kB / 20.24 MB, free: 4.184 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001929/0.001929, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.562/1.562, allocations: 177.1 MB / 203.9 MB, free: 5.312 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.044/3.044, allocations: 377.9 MB / 0.6232 GB, free: 8.523 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 0.8108 GB, free: 2.141 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.72e-05/2.853e-05, allocations: 7.312 kB / 0.8108 GB, free: 2.133 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003179/0.003208, allocations: 1.678 MB / 0.8124 GB, free: 480 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.004417, allocations: 0.5951 MB / 0.813 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.209e-05/0.004489, allocations: 7.938 kB / 0.813 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.004667, allocations: 27.73 kB / 0.813 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0002791/0.004946, allocations: 72.09 kB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.00516, allocations: 72.69 kB / 0.8132 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.005388, allocations: 131.5 kB / 0.8133 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.005525, allocations: 42.27 kB / 0.8133 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.005738, allocations: 85.33 kB / 0.8134 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.005854, allocations: 51.81 kB / 0.8135 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.424e-05/0.005888, allocations: 8 kB / 0.8135 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.451e-05/0.005962, allocations: 24 kB / 0.8135 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.006069, allocations: 48.36 kB / 0.8135 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.03e-05/0.00613, allocations: 32.58 kB / 0.8136 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000254/0.006384, allocations: 155.4 kB / 0.8137 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.006386, allocations: 0.5312 kB / 0.8137 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.002e-06/0.006387, allocations: 0 / 0.8137 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.006391, allocations: 1.625 kB / 0.8137 GB, free: 15.13 MB / 0.7761 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.0007138/0.007105, allocations: 0.4915 MB / 0.8142 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.007137, allocations: 8.031 kB / 0.8142 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.007311, allocations: 29.39 kB / 0.8142 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.007623, allocations: 201.3 kB / 0.8144 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.007634, allocations: 1.5 kB / 0.8144 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.007661, allocations: 12.38 kB / 0.8145 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002617/0.007923, allocations: 125.6 kB / 0.8146 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.007932, allocations: 1.562 kB / 0.8146 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.007948, allocations: 4.375 kB / 0.8146 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.007953, allocations: 7.938 kB / 0.8146 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.008112, allocations: 41.72 kB / 0.8146 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006267/0.008738, allocations: 375.5 kB / 0.815 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.008866, allocations: 39.05 kB / 0.815 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.647e-05/0.008942, allocations: 21.97 kB / 0.815 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.00896, allocations: 0 / 0.815 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000249/0.009209, allocations: 151.8 kB / 0.8152 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 7.21e-07/0.00921, allocations: 0 / 0.8152 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0003543/0.009564, allocations: 92.41 kB / 0.8153 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.764e-05/0.009642, allocations: 81.11 kB / 0.8154 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.009947, allocations: 294.7 kB / 0.8156 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.00997, allocations: 25.7 kB / 0.8157 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.01011, allocations: 182.8 kB / 0.8158 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.01012, allocations: 7.891 kB / 0.8158 GB, free: 12.76 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-05/0.01018, allocations: 28.89 kB / 0.8159 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002636/0.01044, allocations: 0.5079 MB / 0.8164 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.601e-05/0.01052, allocations: 15.98 kB / 0.8164 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.01065, allocations: 85.17 kB / 0.8165 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.01081, allocations: 56.73 kB / 0.8165 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.01081, allocations: 0 / 0.8165 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002898/0.0111, allocations: 82.89 kB / 0.8166 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.01112, allocations: 14.48 kB / 0.8166 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.01112, allocations: 4 kB / 0.8166 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.01114, allocations: 0 / 0.8166 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.837e-05/0.01123, allocations: 7.938 kB / 0.8166 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.01123, allocations: 4 kB / 0.8166 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.355e-05/0.01131, allocations: 11.98 kB / 0.8166 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.01132, allocations: 4.688 kB / 0.8166 GB, free: 11.89 MB / 0.7761 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.0001323/0.01145, allocations: 164.6 kB / 0.8168 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.646e-05/0.0115, allocations: 16.91 kB / 0.8168 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.01154, allocations: 17.02 kB / 0.8168 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.01154, allocations: 0 / 0.8168 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.01154, allocations: 1.156 kB / 0.8168 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.01154, allocations: 0 / 0.8168 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000198/0.01174, allocations: 180.5 kB / 0.817 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.01174, allocations: 0.8438 kB / 0.817 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.025e-05/0.01181, allocations: 19.98 kB / 0.817 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.01181, allocations: 0.7188 kB / 0.817 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.01182, allocations: 0 / 0.817 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.01182, allocations: 3.781 kB / 0.817 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01182, allocations: 0 / 0.817 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002536/0.01208, allocations: 120.2 kB / 0.8171 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.556e-05/0.0121, allocations: 15.91 kB / 0.8172 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.01212, allocations: 0 / 0.8172 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.326e-05/0.01219, allocations: 8 kB / 0.8172 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.01223, allocations: 3.984 kB / 0.8172 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.01225, allocations: 4 kB / 0.8172 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002089/0.01246, allocations: 213.5 kB / 0.8174 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01246, allocations: 1.406 kB / 0.8174 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002163/0.01268, allocations: 19.94 kB / 0.8174 GB, free: 11.06 MB / 0.7761 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.0002962/0.01297, allocations: 130.3 kB / 0.8175 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002368/0.01321, allocations: 52.66 kB / 0.8176 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.01321, allocations: 1.062 kB / 0.8176 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 9.079e-05/0.0133, allocations: 35.61 kB / 0.8176 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.01363, allocations: 43.58 kB / 0.8176 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005581/0.01418, allocations: 269.2 kB / 0.8179 GB, free: 10.5 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.01432, allocations: 115.5 kB / 0.818 GB, free: 10.37 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 6.306e-05/0.01439, allocations: 12.48 kB / 0.818 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.369e-05/0.01443, allocations: 16.44 kB / 0.818 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of SimCode: time 5.21e-07/0.01443, allocations: 1.094 kB / 0.818 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of Templates: time 0.005994/0.02042, allocations: 1.79 MB / 0.8198 GB, free: 8.613 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.934216024936177]