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.001842/0.001842, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.002325/0.002325, allocations: 214.1 kB / 22.99 MB, free: 4.957 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.445/1.445, allocations: 230.6 MB / 256.8 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.179/3.179, allocations: 0.49 GB / 0.7959 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 70.08 kB / 1.155 GB, free: 25.22 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3098, allocations: 176.1 MB / 1.327 GB, free: 0.9844 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003204/0.313, allocations: 1.645 MB / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001118/0.3141, allocations: 0.5845 MB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.242e-05/0.3142, allocations: 7.938 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.3144, allocations: 27.72 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002596/0.3146, allocations: 59.69 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.3148, allocations: 83.83 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002004/0.315, allocations: 127.6 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.3152, allocations: 37.55 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.3154, allocations: 67.7 kB / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.3155, allocations: 75.67 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.3155, allocations: 8 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.507e-05/0.3156, allocations: 28 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.3157, allocations: 47.77 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.271e-05/0.3158, allocations: 47.67 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002339/0.316, allocations: 143.4 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.316, allocations: 0 / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.613e-06/0.316, allocations: 0 / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.316, allocations: 0 / 1.33 GB, free: 13.99 MB / 1.029 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.0006831/0.3167, allocations: 413.2 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.3167, allocations: 8.031 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.3169, allocations: 28.83 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.3172, allocations: 189.9 kB / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.3172, allocations: 4.375 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.3173, allocations: 8.375 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.3176, allocations: 167.7 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.3176, allocations: 0 / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.3176, allocations: 8 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3176, allocations: 0 / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.3179, allocations: 63.94 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005724/0.3184, allocations: 308.3 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.3186, allocations: 42.55 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.3187, allocations: 28.91 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.3187, allocations: 0 / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.319, allocations: 148.4 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.319, allocations: 0 / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004572/0.3194, allocations: 121.5 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.3195, allocations: 88.98 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.3198, allocations: 244 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.3198, allocations: 25.7 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.915e-05/0.3199, allocations: 128.1 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.3199, allocations: 11.89 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.3199, allocations: 17.72 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3201, allocations: 322.8 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.3202, allocations: 23.97 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.3204, allocations: 81.05 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.3206, allocations: 70.52 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3206, allocations: 0 / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002956/0.3209, allocations: 101.5 kB / 1.332 GB, free: 11.15 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3209, allocations: 10.33 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3209, allocations: 3.938 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.3209, allocations: 4 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.321, allocations: 15.92 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.321, allocations: 3.938 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.447e-05/0.3211, allocations: 15.94 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.3211, allocations: 4.094 kB / 1.333 GB, free: 11.1 MB / 1.029 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.0001168/0.3213, allocations: 133.8 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.049e-05/0.3213, allocations: 15.91 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.443e-05/0.3213, allocations: 13.03 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3213, allocations: 288 / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3213, allocations: 3.938 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.3213, allocations: 7.969 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.3215, allocations: 153.3 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3215, allocations: 0 / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.59e-05/0.3216, allocations: 11.98 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3216, allocations: 4 kB / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.3216, allocations: 0 / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3216, allocations: 0 / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3216, allocations: 0 / 1.333 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.3219, allocations: 132.8 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.284e-05/0.3219, allocations: 11.91 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.322, allocations: 0 / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.584e-05/0.322, allocations: 11.98 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.3221, allocations: 11.88 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.3221, allocations: 11.98 kB / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001747/0.3223, allocations: 181.6 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3223, allocations: 0 / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002273/0.3225, allocations: 23.89 kB / 1.333 GB, free: 10.33 MB / 1.029 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.0002657/0.3228, allocations: 130.1 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002841/0.3231, allocations: 51.88 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3231, allocations: 8 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.3232, allocations: 19.98 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.3235, allocations: 44.2 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005459/0.324, allocations: 292.2 kB / 1.334 GB, free: 9.762 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.3241, allocations: 106.1 kB / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.489e-05/0.3242, allocations: 20.48 kB / 1.334 GB, free: 9.617 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.3242, allocations: 15.44 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of SimCode: time 3.3e-07/0.3242, allocations: 0 / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of Templates: time 0.005322/0.3296, allocations: 1.87 MB / 1.336 GB, free: 7.766 MB / 1.029 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=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] 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/jenkins1/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: 8.694727797002997]