Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.458/1.458, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.938/2.938, allocations: 462.7 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003935/0.0003935, allocations: 8.812 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3312, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003815/0.3351, allocations: 2.764 MB / 1.062 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003164/0.3383, allocations: 1.897 MB / 1.064 GB, free: 280 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001983/0.3385, allocations: 4 kB / 1.064 GB, free: 276 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.3387, allocations: 39.7 kB / 1.064 GB, free: 236 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006022/0.3394, allocations: 175.3 kB / 1.064 GB, free: 60 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006524/0.34, allocations: 219.5 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000508/0.3405, allocations: 442.8 kB / 1.065 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006647/0.3412, allocations: 338.1 kB / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.3414, allocations: 103.6 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003532/0.3418, allocations: 143.5 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.52e-05/0.3418, allocations: 12 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009087/0.3428, allocations: 471.1 kB / 1.066 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.3429, allocations: 79.72 kB / 1.066 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.343, allocations: 129.2 kB / 1.066 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005323/0.3436, allocations: 371.1 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3436, allocations: 0 / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3436, allocations: 0 / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.896e-06/0.3436, allocations: 0 / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008335/0.3444, allocations: 0.5263 MB / 1.067 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3445, allocations: 15.97 kB / 1.067 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009514/0.3454, allocations: 112.5 kB / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003503/0.3458, allocations: 257.9 kB / 1.067 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.3458, allocations: 16.81 kB / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.733e-05/0.3459, allocations: 16.38 kB / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006585/0.3465, allocations: 361.2 kB / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.3466, allocations: 0 / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.3466, allocations: 4 kB / 1.068 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-05/0.3467, allocations: 32.41 kB / 1.068 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004694/0.3471, allocations: 289.5 kB / 1.068 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.3493, allocations: 1.745 MB / 1.07 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005573/0.3499, allocations: 322.1 kB / 1.07 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.3501, allocations: 113.5 kB / 1.07 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.3502, allocations: 81.11 kB / 1.07 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.3502, allocations: 42.83 kB / 1.07 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 3.256e-06/0.3502, allocations: 4 kB / 1.07 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.002535/0.3528, allocations: 0.968 MB / 1.071 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00015/0.353, allocations: 85.05 kB / 1.071 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.3533, allocations: 211.7 kB / 1.071 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.3533, allocations: 29.7 kB / 1.071 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.3534, allocations: 172.1 kB / 1.072 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.3536, allocations: 86.75 kB / 1.072 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.3536, allocations: 29.7 kB / 1.072 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3538, allocations: 326.8 kB / 1.072 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002311/0.354, allocations: 135.9 kB / 1.072 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003617/0.3544, allocations: 213.2 kB / 1.072 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.355, allocations: 366.7 kB / 1.073 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.355, allocations: 4 kB / 1.073 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00112/0.3561, allocations: 0.5094 MB / 1.073 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3562, allocations: 8.312 kB / 1.073 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.3562, allocations: 4 kB / 1.073 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005389/0.3567, allocations: 151.3 kB / 1.073 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002524/0.357, allocations: 59.91 kB / 1.073 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003666/0.3607, allocations: 3.965 MB / 1.077 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.3609, allocations: 19.89 kB / 1.077 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.3609, allocations: 12 kB / 1.077 GB, free: 1.699 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002066/0.3611, allocations: 165.8 kB / 1.077 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.389e-05/0.3612, allocations: 15.81 kB / 1.077 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009869/0.3622, allocations: 486.8 kB / 1.078 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.3622, allocations: 4 kB / 1.078 GB, free: 1.02 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3622, allocations: 0 / 1.078 GB, free: 1.02 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3623, allocations: 0 / 1.078 GB, free: 1.02 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001825/0.3641, allocations: 1.024 MB / 1.079 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.3641, allocations: 0 / 1.079 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.3642, allocations: 35.92 kB / 1.079 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000469/0.3647, allocations: 147.6 kB / 1.079 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3648, allocations: 7.938 kB / 1.079 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003307/0.3681, allocations: 3.946 MB / 1.083 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3681, allocations: 4.125 kB / 1.083 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008955/0.369, allocations: 0.6294 MB / 1.084 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.3692, allocations: 124.8 kB / 1.084 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.3692, allocations: 8 kB / 1.084 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.3695, allocations: 19.98 kB / 1.084 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.773e-05/0.3696, allocations: 31.84 kB / 1.084 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.3696, allocations: 8 kB / 1.084 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001556/0.3697, allocations: 165.5 kB / 1.084 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3697, allocations: 0 / 1.084 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005474/0.3703, allocations: 87.94 kB / 1.084 GB, free: 10.3 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002049/0.3705, allocations: 139.2 kB / 1.084 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009321/0.3715, allocations: 0.5755 MB / 1.085 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3715, allocations: 4.125 kB / 1.085 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000499/0.372, allocations: 398.5 kB / 1.085 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005344/0.3725, allocations: 44.61 kB / 1.085 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.3736, allocations: 0.8091 MB / 1.086 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.374, allocations: 0.787 MB / 1.087 GB, free: 7.406 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.817e-05/0.3741, allocations: 27.42 kB / 1.087 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.3741, allocations: 0 / 1.087 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of Templates: time 0.009994/0.3841, allocations: 7.58 MB / 1.094 GB, free: 15.8 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches