Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.00135/0.00135, allocations: 84.05 kB / 19.18 MB, free: 2.523 MB / 14.72 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.001453/0.001453, allocations: 168.5 kB / 22.46 MB, free: 5.359 MB / 14.72 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.489/1.489, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.714/2.714, allocations: 359 MB / 0.6037 GB, free: 15 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 0.9509 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.899e-05/3.041e-05, allocations: 2.281 kB / 0.9509 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003525/0.003555, allocations: 1.648 MB / 0.9526 GB, free: 9.945 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.004793, allocations: 0.5811 MB / 0.9531 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.349e-05/0.004877, allocations: 3.938 kB / 0.9531 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.005078, allocations: 39.64 kB / 0.9532 GB, free: 9.316 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002923/0.00537, allocations: 63.67 kB / 0.9532 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002271/0.005597, allocations: 75.78 kB / 0.9533 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.005829, allocations: 139.5 kB / 0.9534 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.00598, allocations: 29.66 kB / 0.9535 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.006209, allocations: 83.8 kB / 0.9535 GB, free: 8.926 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.006328, allocations: 47.89 kB / 0.9536 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.075e-05/0.006359, allocations: 8 kB / 0.9536 GB, free: 8.871 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.962e-05/0.006449, allocations: 31.91 kB / 0.9536 GB, free: 8.84 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.006561, allocations: 47.77 kB / 0.9537 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.427e-05/0.006616, allocations: 27.92 kB / 0.9537 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000261/0.006877, allocations: 159.4 kB / 0.9538 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.006879, allocations: 0 / 0.9538 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of FrontEnd: time 6.71e-07/0.00688, allocations: 0 / 0.9538 GB, free: 8.609 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.006884, allocations: 0 / 0.9538 GB, free: 8.609 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.0007214/0.007606, allocations: 407.2 kB / 0.9542 GB, free: 8.184 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.007648, allocations: 12.03 kB / 0.9542 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.007831, allocations: 28.8 kB / 0.9543 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003576/0.008188, allocations: 193 kB / 0.9545 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.008203, allocations: 384 / 0.9545 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.008221, allocations: 8.375 kB / 0.9545 GB, free: 7.922 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003639/0.008585, allocations: 165.6 kB / 0.9546 GB, free: 7.742 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.008594, allocations: 4.125 kB / 0.9546 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.008607, allocations: 384 / 0.9546 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.008621, allocations: 7.938 kB / 0.9546 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000298/0.008919, allocations: 63.88 kB / 0.9547 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006145/0.009533, allocations: 304.3 kB / 0.955 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.009702, allocations: 54.42 kB / 0.955 GB, free: 7.277 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.009825, allocations: 20.91 kB / 0.9551 GB, free: 7.254 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.009844, allocations: 0 / 0.9551 GB, free: 7.254 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003349/0.01018, allocations: 152.5 kB / 0.9552 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.01018, allocations: 0 / 0.9552 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004939/0.01067, allocations: 121.5 kB / 0.9553 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.01073, allocations: 81.11 kB / 0.9554 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.01101, allocations: 240.1 kB / 0.9556 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.01104, allocations: 29.7 kB / 0.9557 GB, free: 6.574 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.01115, allocations: 132 kB / 0.9558 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/0.01117, allocations: 3.953 kB / 0.9558 GB, free: 6.438 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.423e-05/0.01121, allocations: 13.72 kB / 0.9558 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001862/0.0114, allocations: 330.8 kB / 0.9561 GB, free: 6.086 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.01155, allocations: 31.97 kB / 0.9561 GB, free: 6.055 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.0117, allocations: 73.11 kB / 0.9562 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.01195, allocations: 66.47 kB / 0.9563 GB, free: 5.891 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.01196, allocations: 3.984 kB / 0.9563 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003342/0.01229, allocations: 97.53 kB / 0.9564 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.01231, allocations: 8 kB / 0.9564 GB, free: 5.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.01232, allocations: 3.984 kB / 0.9564 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.01233, allocations: 0 / 0.9564 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.01246, allocations: 15.98 kB / 0.9564 GB, free: 5.758 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.01247, allocations: 4 kB / 0.9564 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.692e-05/0.01257, allocations: 16.03 kB / 0.9564 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.01258, allocations: 7.938 kB / 0.9564 GB, free: 5.73 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 0.0001465/0.01273, allocations: 129.7 kB / 0.9565 GB, free: 5.594 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.01276, allocations: 20.19 kB / 0.9566 GB, free: 5.574 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.714e-05/0.0128, allocations: 17.03 kB / 0.9566 GB, free: 5.562 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.0128, allocations: 3.984 kB / 0.9566 GB, free: 5.559 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.01281, allocations: 0 / 0.9566 GB, free: 5.559 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.01282, allocations: 7.922 kB / 0.9566 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.01299, allocations: 149.2 kB / 0.9567 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.01299, allocations: 0 / 0.9567 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.823e-05/0.01309, allocations: 15.98 kB / 0.9568 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.01309, allocations: 0 / 0.9568 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.0131, allocations: 0 / 0.9568 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.0131, allocations: 0 / 0.9568 GB, free: 5.359 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.0131, allocations: 8 kB / 0.9568 GB, free: 5.352 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003267/0.01343, allocations: 124.9 kB / 0.9569 GB, free: 5.211 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.95e-05/0.01345, allocations: 11.91 kB / 0.9569 GB, free: 5.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.01347, allocations: 0 / 0.9569 GB, free: 5.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.729e-05/0.01357, allocations: 11.98 kB / 0.9569 GB, free: 5.188 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.01363, allocations: 15.88 kB / 0.9569 GB, free: 5.172 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.669e-05/0.01367, allocations: 7.984 kB / 0.9569 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001979/0.01387, allocations: 177.6 kB / 0.9571 GB, free: 4.992 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.01387, allocations: 0 / 0.9571 GB, free: 4.992 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002386/0.01411, allocations: 23.95 kB / 0.9571 GB, free: 4.969 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.00028/0.01439, allocations: 129.2 kB / 0.9572 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000331/0.01472, allocations: 59.88 kB / 0.9573 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01472, allocations: 0 / 0.9573 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.01484, allocations: 27.92 kB / 0.9573 GB, free: 4.754 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.01517, allocations: 45.59 kB / 0.9574 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005883/0.01576, allocations: 278.8 kB / 0.9576 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.01587, allocations: 106.2 kB / 0.9577 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.301e-05/0.01593, allocations: 16.61 kB / 0.9578 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.599e-05/0.01598, allocations: 20.48 kB / 0.9578 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of SimCode: time 3.11e-07/0.01598, allocations: 0 / 0.9578 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of Templates: time 0.005807/0.02179, allocations: 1.758 MB / 0.9595 GB, free: 2.539 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.9442006051540375]