Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 107.5 kB / 16.41 MB, free: 6.008 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.00141/0.001411, allocations: 181.7 kB / 17.34 MB, free: 5.629 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.377/1.377, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.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.241/2.241, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.89 kB / 0.9515 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.912/0.9134, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.VariableLoad): time 0.005285/0.9188, allocations: 3.858 MB / 1.092 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002739/0.9215, allocations: 1.766 MB / 1.094 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001867/0.9217, allocations: 10.34 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.923, allocations: 454.2 kB / 1.095 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006303/0.9237, allocations: 253.5 kB / 1.095 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006872/0.9244, allocations: 241.1 kB / 1.095 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006327/0.925, allocations: 0.492 MB / 1.095 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00062/0.9256, allocations: 363.4 kB / 1.096 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002868/0.9259, allocations: 195.8 kB / 1.096 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004172/0.9264, allocations: 236.5 kB / 1.096 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.047e-05/0.9264, allocations: 33.66 kB / 1.096 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003951/0.9268, allocations: 185.1 kB / 1.096 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001713/0.927, allocations: 136.5 kB / 1.097 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.9272, allocations: 175.1 kB / 1.097 GB, free: 440 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006916/0.9279, allocations: 491.5 kB / 1.097 GB, free: 268 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.9279, allocations: 5.406 kB / 1.097 GB, free: 264 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.914e-06/0.928, allocations: 0 / 1.097 GB, free: 264 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.237e-06/0.928, allocations: 0 / 1.097 GB, free: 264 kB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001225/0.9292, allocations: 0.6581 MB / 1.098 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.9293, allocations: 9 kB / 1.098 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006321/0.9299, allocations: 89.11 kB / 1.098 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004631/0.9304, allocations: 304.1 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.9304, allocations: 24.86 kB / 1.098 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.515e-05/0.9305, allocations: 27.41 kB / 1.098 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009892/0.9315, allocations: 493.6 kB / 1.099 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.9315, allocations: 0 / 1.099 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.351e-05/0.9315, allocations: 15.58 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.36e-05/0.9316, allocations: 46.58 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008101/0.9324, allocations: 361.4 kB / 1.099 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.9349, allocations: 2.028 MB / 1.101 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006205/0.9356, allocations: 217.1 kB / 1.101 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004156/0.936, allocations: 150.9 kB / 1.101 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.9361, allocations: 11.08 kB / 1.102 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.9361, allocations: 35.84 kB / 1.102 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 2.034e-06/0.9361, allocations: 0 / 1.102 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18): time 0.001165/0.9373, allocations: 422.3 kB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.9373, allocations: 58.58 kB / 1.102 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003205/0.9377, allocations: 260.1 kB / 1.102 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.9377, allocations: 26.27 kB / 1.102 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.9378, allocations: 214.5 kB / 1.102 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.459e-05/0.9379, allocations: 60.66 kB / 1.103 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.938, allocations: 57.5 kB / 1.103 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.9382, allocations: 335.8 kB / 1.103 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.9384, allocations: 106.6 kB / 1.103 GB, free: 12.03 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003407/0.9388, allocations: 207.8 kB / 1.103 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005831/0.9394, allocations: 306.7 kB / 1.104 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.9394, allocations: 1 kB / 1.104 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000937/0.9403, allocations: 357.3 kB / 1.104 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.9404, allocations: 7.297 kB / 1.104 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.9404, allocations: 7.312 kB / 1.104 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002395/0.9406, allocations: 33.67 kB / 1.104 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000336/0.941, allocations: 68.34 kB / 1.104 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.9425, allocations: 1.443 MB / 1.105 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003419/0.9428, allocations: 49.16 kB / 1.105 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.9429, allocations: 11.89 kB / 1.105 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004821/0.9433, allocations: 214.3 kB / 1.106 GB, free: 9.914 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003852/0.9437, allocations: 216.6 kB / 1.106 GB, free: 9.727 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006081/0.9444, allocations: 321.5 kB / 1.106 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.286e-06/0.9444, allocations: 5.375 kB / 1.106 GB, free: 9.496 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007628/0.9451, allocations: 333.8 kB / 1.106 GB, free: 9.363 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.9452, allocations: 6.25 kB / 1.106 GB, free: 9.363 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.9452, allocations: 4.938 kB / 1.106 GB, free: 9.363 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.818e-06/0.9452, allocations: 6.219 kB / 1.106 GB, free: 9.363 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003134/0.9455, allocations: 68.19 kB / 1.107 GB, free: 9.359 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.9455, allocations: 10.5 kB / 1.107 GB, free: 9.355 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.9458, allocations: 44.94 kB / 1.107 GB, free: 9.332 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.9459, allocations: 14.81 kB / 1.107 GB, free: 9.328 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001701/0.946, allocations: 199.3 kB / 1.107 GB, free: 9.133 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.573e-05/0.9461, allocations: 23.61 kB / 1.107 GB, free: 9.121 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.802e-05/0.9462, allocations: 32.62 kB / 1.107 GB, free: 9.102 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.9462, allocations: 2.25 kB / 1.107 GB, free: 9.102 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.9462, allocations: 4.547 kB / 1.107 GB, free: 9.098 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.9462, allocations: 4.562 kB / 1.107 GB, free: 9.094 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/0.9476, allocations: 0.7549 MB / 1.108 GB, free: 8.566 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.9477, allocations: 4.672 kB / 1.108 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001921/0.9479, allocations: 37.2 kB / 1.108 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001193/0.948, allocations: 25.97 kB / 1.108 GB, free: 8.551 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.948, allocations: 3.109 kB / 1.108 GB, free: 8.551 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001139/0.9492, allocations: 1.429 MB / 1.109 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.9492, allocations: 1.188 kB / 1.109 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007257/0.9499, allocations: 367.3 kB / 1.109 GB, free: 6.898 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.9501, allocations: 124.5 kB / 1.11 GB, free: 6.777 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.237e-05/0.9501, allocations: 7.141 kB / 1.11 GB, free: 6.773 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.9503, allocations: 12.41 kB / 1.11 GB, free: 6.773 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.812e-05/0.9504, allocations: 17.2 kB / 1.11 GB, free: 6.77 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.9504, allocations: 8.812 kB / 1.11 GB, free: 6.766 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002148/0.9506, allocations: 187.2 kB / 1.11 GB, free: 6.652 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9506, allocations: 3.938 kB / 1.11 GB, free: 6.648 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007333/0.9514, allocations: 140.8 kB / 1.11 GB, free: 6.617 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001285/0.9515, allocations: 106.1 kB / 1.11 GB, free: 6.52 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001198/0.9527, allocations: 497.8 kB / 1.11 GB, free: 6.305 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.9527, allocations: 0 / 1.11 GB, free: 6.305 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003493/0.9531, allocations: 223.1 kB / 1.111 GB, free: 6.164 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005155/0.9536, allocations: 71.73 kB / 1.111 GB, free: 6.141 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009815/0.9546, allocations: 0.5863 MB / 1.111 GB, free: 5.773 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000389/0.955, allocations: 0.7997 MB / 1.112 GB, free: 5.062 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.416e-05/0.9551, allocations: 30.72 kB / 1.112 GB, free: 5.047 MB / 0.8731 GB Notification: Performance of SimCode: time 2.8e-07/0.9551, allocations: 1.5 kB / 1.112 GB, free: 5.047 MB / 0.8731 GB Notification: Performance of Templates: time 0.008665/0.9637, allocations: 4.793 MB / 1.117 GB, free: 4.645 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches