Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005144/0.005148, allocations: 100.7 kB / 15.73 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 193.1 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 62.47 kB / 0.9508 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3078, allocations: 140.4 MB / 1.088 GB, free: 1.543 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.004112/0.312, allocations: 1.638 MB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001144/0.3132, allocations: 0.5429 MB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.3133, allocations: 4 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003054/0.3136, allocations: 19.8 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004017/0.3141, allocations: 63.67 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.3143, allocations: 75.78 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002615/0.3146, allocations: 127.6 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.3148, allocations: 53.44 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.315, allocations: 63.72 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.3151, allocations: 55.75 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.528e-05/0.3152, allocations: 11.94 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.698e-05/0.3153, allocations: 23.98 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.3154, allocations: 47.83 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.842e-05/0.3155, allocations: 67.55 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.3158, allocations: 139.4 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3158, allocations: 0 / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3158, allocations: 0 / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.3158, allocations: 4 kB / 1.091 GB, free: 14.59 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.0008703/0.3167, allocations: 470.6 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.3167, allocations: 8.031 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.142e-05/0.3168, allocations: 16.75 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.3172, allocations: 244.7 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.3172, allocations: 8.375 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.3172, allocations: 8.375 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003133/0.3176, allocations: 113.9 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3176, allocations: 0 / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.3176, allocations: 0 / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3176, allocations: 0 / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000219/0.3178, allocations: 63.94 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006113/0.3185, allocations: 392.4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.3186, allocations: 38.56 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.3187, allocations: 24.89 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.3187, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.319, allocations: 109 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.113e-06/0.319, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000429/0.3194, allocations: 113.4 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.32e-05/0.3195, allocations: 85.09 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.3198, allocations: 253 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.3198, allocations: 25.7 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.448e-05/0.3199, allocations: 136 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.3199, allocations: 3.906 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.841e-05/0.32, allocations: 17.72 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3201, allocations: 330.8 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.3202, allocations: 19.98 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.3204, allocations: 55.34 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.3206, allocations: 70.55 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3206, allocations: 3.938 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002616/0.3209, allocations: 105.6 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.3209, allocations: 4 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3209, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3209, allocations: 8.031 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.321, allocations: 15.98 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.321, allocations: 7.938 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.214e-05/0.3211, allocations: 15.97 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.3211, allocations: 0 / 1.093 GB, free: 11.62 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.0001138/0.3213, allocations: 133.8 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.768e-05/0.3213, allocations: 19.72 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.609e-05/0.3213, allocations: 17.23 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.3214, allocations: 7.938 kB / 1.094 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3214, allocations: 4 kB / 1.094 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3214, allocations: 0 / 1.094 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.3215, allocations: 213.6 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3215, allocations: 0 / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.326e-05/0.3216, allocations: 11.98 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3216, allocations: 0 / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.3216, allocations: 0 / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.3217, allocations: 7.938 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3217, allocations: 0 / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/0.3219, allocations: 128.8 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.52e-05/0.322, allocations: 84.92 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.322, allocations: 4 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.981e-05/0.3221, allocations: 15.92 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/0.3222, allocations: 4 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.3222, allocations: 7.984 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001513/0.3224, allocations: 188.5 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3224, allocations: 0 / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002733/0.3226, allocations: 23.98 kB / 1.094 GB, free: 10.68 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.000238/0.3229, allocations: 123.8 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000271/0.3232, allocations: 63.88 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3232, allocations: 3.938 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.3233, allocations: 27.97 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.3236, allocations: 39.67 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004791/0.3241, allocations: 280.5 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.3244, allocations: 0.7237 MB / 1.095 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.072e-05/0.3245, allocations: 20.48 kB / 1.095 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.491e-05/0.3245, allocations: 15.42 kB / 1.095 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.3246, allocations: 0 / 1.095 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of Templates: time 0.004693/0.3293, allocations: 1.811 MB / 1.097 GB, free: 7.551 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches