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.001866/0.001866, allocations: 83.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.001973/0.001973, allocations: 161.3 kB / 23.55 MB, free: 0.8711 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.529/1.529, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 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.864/2.864, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 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.262e-06/1.262e-06, allocations: 0 / 0.7863 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.3e-05/2.427e-05, allocations: 3.469 kB / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003153/0.003178, allocations: 1.684 MB / 0.788 GB, free: 11.14 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.004377, allocations: 0.5959 MB / 0.7886 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.731e-05/0.004454, allocations: 4 kB / 0.7886 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.004645, allocations: 27.72 kB / 0.7886 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0002683/0.004914, allocations: 67.67 kB / 0.7887 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.005131, allocations: 73.69 kB / 0.7887 GB, free: 10.37 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002302/0.005361, allocations: 143.5 kB / 0.7889 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.00549, allocations: 25.67 kB / 0.7889 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002069/0.005697, allocations: 79.8 kB / 0.789 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.005819, allocations: 57.34 kB / 0.789 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/0.005851, allocations: 8 kB / 0.789 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.855e-05/0.00593, allocations: 27.92 kB / 0.7891 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.006035, allocations: 43.83 kB / 0.7891 GB, free: 9.992 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 5.953e-05/0.006094, allocations: 40.94 kB / 0.7891 GB, free: 9.953 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.006349, allocations: 143.5 kB / 0.7893 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.006351, allocations: 0.6875 kB / 0.7893 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.92e-07/0.006352, allocations: 4 kB / 0.7893 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.006356, allocations: 1.031 kB / 0.7893 GB, free: 9.809 MB / 0.7448 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.0009315/0.007287, allocations: 0.4914 MB / 0.7898 GB, free: 9.281 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.007319, allocations: 10.62 kB / 0.7898 GB, free: 9.273 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.007495, allocations: 32.8 kB / 0.7898 GB, free: 9.242 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.00782, allocations: 192 kB / 0.79 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.007834, allocations: 4.375 kB / 0.79 GB, free: 9.023 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.007852, allocations: 9.031 kB / 0.79 GB, free: 9.016 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.008115, allocations: 130.2 kB / 0.7901 GB, free: 8.871 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.008124, allocations: 192 / 0.7901 GB, free: 8.871 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.008139, allocations: 6.031 kB / 0.7901 GB, free: 8.867 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.008147, allocations: 7.938 kB / 0.7901 GB, free: 8.859 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.008306, allocations: 39.97 kB / 0.7902 GB, free: 8.82 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006193/0.008925, allocations: 376.1 kB / 0.7905 GB, free: 8.418 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/0.009047, allocations: 35.95 kB / 0.7906 GB, free: 8.371 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.006e-05/0.009127, allocations: 24.89 kB / 0.7906 GB, free: 8.344 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.009149, allocations: 4 kB / 0.7906 GB, free: 8.34 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.009396, allocations: 153.1 kB / 0.7908 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.009396, allocations: 0 / 0.7908 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0003528/0.009749, allocations: 89.56 kB / 0.7908 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.255e-05/0.009812, allocations: 78.86 kB / 0.7909 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.01012, allocations: 298.7 kB / 0.7912 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.01014, allocations: 29.64 kB / 0.7912 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.01029, allocations: 186.8 kB / 0.7914 GB, free: 7.438 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.01031, allocations: 9.172 kB / 0.7914 GB, free: 7.43 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.01035, allocations: 27.31 kB / 0.7914 GB, free: 7.395 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002847/0.01064, allocations: 0.504 MB / 0.7919 GB, free: 6.879 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.132e-05/0.01072, allocations: 16.83 kB / 0.7919 GB, free: 6.863 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.01084, allocations: 76.44 kB / 0.792 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.011, allocations: 61.53 kB / 0.7921 GB, free: 6.695 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.011, allocations: 0 / 0.7921 GB, free: 6.695 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002231/0.01122, allocations: 90.89 kB / 0.7922 GB, free: 6.602 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.01123, allocations: 4 kB / 0.7922 GB, free: 6.598 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.01124, allocations: 6.906 kB / 0.7922 GB, free: 6.594 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.01126, allocations: 4 kB / 0.7922 GB, free: 6.59 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.17e-05/0.01134, allocations: 4 kB / 0.7922 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.157e-06/0.01134, allocations: 0 / 0.7922 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.273e-05/0.01141, allocations: 11.98 kB / 0.7922 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.01143, allocations: 3.938 kB / 0.7922 GB, free: 6.57 MB / 0.7448 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.000138/0.01156, allocations: 160.6 kB / 0.7924 GB, free: 6.402 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/0.0116, allocations: 20.41 kB / 0.7924 GB, free: 6.383 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.811e-05/0.01164, allocations: 22.95 kB / 0.7924 GB, free: 6.363 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.01164, allocations: 0 / 0.7924 GB, free: 6.363 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.01165, allocations: 0 / 0.7924 GB, free: 6.363 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.01165, allocations: 0 / 0.7924 GB, free: 6.363 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001989/0.01185, allocations: 184.5 kB / 0.7926 GB, free: 6.148 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.01185, allocations: 0 / 0.7926 GB, free: 6.148 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.01191, allocations: 4.844 kB / 0.7926 GB, free: 6.145 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.01192, allocations: 4 kB / 0.7926 GB, free: 6.141 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.01192, allocations: 0.8438 kB / 0.7926 GB, free: 6.141 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.01192, allocations: 3.938 kB / 0.7926 GB, free: 6.137 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.01193, allocations: 4.641 kB / 0.7926 GB, free: 6.133 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.01218, allocations: 123 kB / 0.7927 GB, free: 5.992 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.434e-05/0.01221, allocations: 11.91 kB / 0.7927 GB, free: 5.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.01223, allocations: 0 / 0.7927 GB, free: 5.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.221e-05/0.0123, allocations: 11.98 kB / 0.7927 GB, free: 5.969 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.01234, allocations: 4 kB / 0.7927 GB, free: 5.965 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.01237, allocations: 7.984 kB / 0.7927 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002089/0.01258, allocations: 205.5 kB / 0.7929 GB, free: 5.758 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.21e-07/0.01258, allocations: 6.094 kB / 0.7929 GB, free: 5.754 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002185/0.0128, allocations: 23.94 kB / 0.793 GB, free: 5.73 MB / 0.7448 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.0002859/0.01308, allocations: 129.5 kB / 0.7931 GB, free: 5.605 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002294/0.01331, allocations: 56.56 kB / 0.7931 GB, free: 5.547 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01331, allocations: 0 / 0.7931 GB, free: 5.547 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.913e-05/0.0134, allocations: 23.67 kB / 0.7932 GB, free: 5.52 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.01372, allocations: 51.86 kB / 0.7932 GB, free: 5.473 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00055/0.01427, allocations: 276.9 kB / 0.7935 GB, free: 5.172 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.01438, allocations: 102.2 kB / 0.7936 GB, free: 5.051 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.111e-05/0.01445, allocations: 13.83 kB / 0.7936 GB, free: 5.039 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.987e-05/0.0145, allocations: 24.48 kB / 0.7936 GB, free: 5.016 MB / 0.7448 GB Notification: Performance of SimCode: time 4.31e-07/0.0145, allocations: 1.094 kB / 0.7936 GB, free: 5.016 MB / 0.7448 GB Notification: Performance of Templates: time 0.005655/0.02016, allocations: 1.783 MB / 0.7954 GB, free: 3.273 MB / 0.7448 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] 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.762804414029233]