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.001422/0.001422, allocations: 88.39 kB / 20.23 MB, free: 4.172 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.001595/0.001595, allocations: 161.3 kB / 23.55 MB, free: 0.8633 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.497/1.497, allocations: 177.1 MB / 203.9 MB, free: 5.602 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.648/2.648, 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.703e-06/1.703e-06, allocations: 0.7656 kB / 0.7863 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.407e-05/2.577e-05, allocations: 2.875 kB / 0.7863 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003277/0.003303, allocations: 1.658 MB / 0.788 GB, free: 11.2 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.004592, allocations: 0.5834 MB / 0.7885 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.936e-05/0.004691, allocations: 3.938 kB / 0.7885 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.004902, allocations: 36.22 kB / 0.7886 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0002861/0.005188, allocations: 68.81 kB / 0.7886 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.005436, allocations: 75.78 kB / 0.7887 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.005683, allocations: 136.1 kB / 0.7888 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.005844, allocations: 38.52 kB / 0.7889 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000217/0.006061, allocations: 75.8 kB / 0.789 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.006177, allocations: 48.84 kB / 0.789 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.201e-05/0.006209, allocations: 8 kB / 0.789 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.437e-05/0.006293, allocations: 27.94 kB / 0.789 GB, free: 10.1 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.006396, allocations: 48.42 kB / 0.7891 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.49e-05/0.00646, allocations: 33.39 kB / 0.7891 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002898/0.00675, allocations: 155.4 kB / 0.7893 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.006752, allocations: 0 / 0.7893 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.11e-07/0.006753, allocations: 0 / 0.7893 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.006759, allocations: 1.594 kB / 0.7893 GB, free: 9.871 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.0007184/0.007477, allocations: 393.3 kB / 0.7896 GB, free: 9.457 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.007513, allocations: 8.031 kB / 0.7896 GB, free: 9.449 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.007735, allocations: 44.22 kB / 0.7897 GB, free: 9.41 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003491/0.008084, allocations: 185.2 kB / 0.7899 GB, free: 9.203 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.0081, allocations: 8.375 kB / 0.7899 GB, free: 9.195 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.008117, allocations: 4.375 kB / 0.7899 GB, free: 9.191 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003571/0.008474, allocations: 165.5 kB / 0.79 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.008484, allocations: 4.875 kB / 0.79 GB, free: 9.008 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.008497, allocations: 384 / 0.79 GB, free: 9.008 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.008504, allocations: 4.531 kB / 0.79 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002652/0.008769, allocations: 65.22 kB / 0.7901 GB, free: 8.941 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006321/0.009401, allocations: 320.8 kB / 0.7904 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.009554, allocations: 35.69 kB / 0.7904 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.009679, allocations: 29.64 kB / 0.7905 GB, free: 8.523 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.0097, allocations: 4.719 kB / 0.7905 GB, free: 8.52 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000301/0.01, allocations: 149.7 kB / 0.7906 GB, free: 8.344 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 8.81e-07/0.01, allocations: 0 / 0.7906 GB, free: 8.344 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0004996/0.0105, allocations: 119.5 kB / 0.7907 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.959e-05/0.01058, allocations: 81.09 kB / 0.7908 GB, free: 8.125 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003062/0.01089, allocations: 237.7 kB / 0.791 GB, free: 7.887 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.01091, allocations: 25.7 kB / 0.7911 GB, free: 7.855 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.01103, allocations: 132 kB / 0.7912 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.01105, allocations: 11.95 kB / 0.7912 GB, free: 7.711 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.0111, allocations: 17.7 kB / 0.7912 GB, free: 7.688 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002015/0.0113, allocations: 333.5 kB / 0.7915 GB, free: 7.355 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.01142, allocations: 23.91 kB / 0.7916 GB, free: 7.332 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.0116, allocations: 73.11 kB / 0.7916 GB, free: 7.242 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002353/0.01183, allocations: 68.03 kB / 0.7917 GB, free: 7.168 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01183, allocations: 0.5 kB / 0.7917 GB, free: 7.168 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003181/0.01215, allocations: 103.4 kB / 0.7918 GB, free: 7.062 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.01217, allocations: 8.562 kB / 0.7918 GB, free: 7.055 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.01217, allocations: 4 kB / 0.7918 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.01219, allocations: 1.969 kB / 0.7918 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.01231, allocations: 11.98 kB / 0.7918 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.01231, allocations: 0 / 0.7918 GB, free: 7.039 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.449e-05/0.01241, allocations: 11.98 kB / 0.7918 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.01243, allocations: 8.469 kB / 0.7918 GB, free: 7.02 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.0001456/0.01257, allocations: 130.5 kB / 0.792 GB, free: 6.883 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.11e-05/0.01261, allocations: 16.19 kB / 0.792 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.082e-05/0.01266, allocations: 21.52 kB / 0.792 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/0.01267, allocations: 9.078 kB / 0.792 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.01267, allocations: 4 kB / 0.792 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.01267, allocations: 3.938 kB / 0.792 GB, free: 6.832 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.01286, allocations: 154.1 kB / 0.7922 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.01286, allocations: 0 / 0.7922 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.822e-05/0.01295, allocations: 12.83 kB / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.01296, allocations: 0 / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-06/0.01296, allocations: 2.219 kB / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.01297, allocations: 0 / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.01297, allocations: 0 / 0.7922 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003423/0.01331, allocations: 128.8 kB / 0.7923 GB, free: 6.496 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.957e-05/0.01333, allocations: 12.97 kB / 0.7923 GB, free: 6.484 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.01335, allocations: 7.984 kB / 0.7923 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.525e-05/0.01344, allocations: 5.125 kB / 0.7923 GB, free: 6.473 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.677e-05/0.0135, allocations: 11.98 kB / 0.7923 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.01352, allocations: 4 kB / 0.7923 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002137/0.01373, allocations: 183.2 kB / 0.7925 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01373, allocations: 0 / 0.7925 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002383/0.01397, allocations: 20 kB / 0.7925 GB, free: 6.262 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.0003243/0.0143, allocations: 130.4 kB / 0.7927 GB, free: 6.137 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002994/0.01459, allocations: 61.39 kB / 0.7927 GB, free: 6.078 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.0146, allocations: 0 / 0.7927 GB, free: 6.078 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.01472, allocations: 28.97 kB / 0.7927 GB, free: 6.051 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.01504, allocations: 49.03 kB / 0.7928 GB, free: 6.008 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008417/0.01588, allocations: 285.5 kB / 0.7931 GB, free: 5.699 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.01601, allocations: 111.7 kB / 0.7932 GB, free: 5.57 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.276e-05/0.01608, allocations: 20.61 kB / 0.7932 GB, free: 5.551 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.728e-05/0.01613, allocations: 20.48 kB / 0.7932 GB, free: 5.531 MB / 0.7448 GB Notification: Performance of SimCode: time 4.6e-07/0.01613, allocations: 0 / 0.7932 GB, free: 5.531 MB / 0.7448 GB Notification: Performance of Templates: time 0.00555/0.02168, allocations: 1.771 MB / 0.7949 GB, free: 3.801 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=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.343706781975925]