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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001678/0.001678, allocations: 99.8 kB / 15.78 MB, free: 5.984 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.00164/0.00164, allocations: 200.6 kB / 16.72 MB, free: 5.84 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.487/1.487, allocations: 225.6 MB / 243.1 MB, free: 3.684 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.897/2.897, allocations: 489.4 MB / 0.7669 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00337/0.00337, allocations: 67.89 kB / 1.115 GB, free: 6.844 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.225/1.229, allocations: 172 MB / 1.283 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005478/1.234, allocations: 3.108 MB / 1.286 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.003766/1.238, allocations: 1.924 MB / 1.288 GB, free: 1.91 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/1.238, allocations: 4.469 kB / 1.288 GB, free: 1.91 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001063/1.239, allocations: 290.1 kB / 1.288 GB, free: 1.738 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006254/1.24, allocations: 194.3 kB / 1.288 GB, free: 1.633 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008509/1.241, allocations: 245.5 kB / 1.288 GB, free: 1.516 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004626/1.241, allocations: 317.5 kB / 1.289 GB, free: 1.379 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003803/1.242, allocations: 153.4 kB / 1.289 GB, free: 1.305 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/1.242, allocations: 136.9 kB / 1.289 GB, free: 1.242 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003546/1.242, allocations: 164.7 kB / 1.289 GB, free: 1.172 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.18e-05/1.242, allocations: 20.12 kB / 1.289 GB, free: 1.172 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007906/1.243, allocations: 407.5 kB / 1.289 GB, free: 1.047 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001429/1.243, allocations: 92.12 kB / 1.29 GB, free: 1.004 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001604/1.243, allocations: 111.4 kB / 1.29 GB, free: 0.9414 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008801/1.244, allocations: 0.491 MB / 1.29 GB, free: 0.7734 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/1.244, allocations: 1.656 kB / 1.29 GB, free: 0.7734 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.134e-06/1.244, allocations: 0 / 1.29 GB, free: 0.7734 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.076e-06/1.244, allocations: 0 / 1.29 GB, free: 0.7734 MB / 0.9981 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.00107/1.245, allocations: 0.561 MB / 1.291 GB, free: 288 kB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/1.245, allocations: 9.625 kB / 1.291 GB, free: 288 kB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008981/1.246, allocations: 121.7 kB / 1.291 GB, free: 256 kB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/1.247, allocations: 266.2 kB / 1.291 GB, free: 8 kB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/1.247, allocations: 16.09 kB / 1.291 GB, free: 0 / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.413e-05/1.247, allocations: 20.8 kB / 1.291 GB, free: 15.99 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006312/1.247, allocations: 359.3 kB / 1.291 GB, free: 15.81 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/1.247, allocations: 1.219 kB / 1.291 GB, free: 15.81 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.52e-05/1.247, allocations: 7.172 kB / 1.291 GB, free: 15.8 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.629e-05/1.247, allocations: 25.33 kB / 1.291 GB, free: 15.8 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005151/1.248, allocations: 290.7 kB / 1.292 GB, free: 15.7 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/1.25, allocations: 1.743 MB / 1.293 GB, free: 14.24 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005433/1.251, allocations: 319.3 kB / 1.294 GB, free: 14.03 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000188/1.251, allocations: 103.6 kB / 1.294 GB, free: 13.98 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000131/1.251, allocations: 91 kB / 1.294 GB, free: 13.88 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/1.251, allocations: 35.78 kB / 1.294 GB, free: 13.84 MB / 1.014 GB Notification: Performance of pre-optimization done (n=16): time 1.272e-06/1.251, allocations: 0 / 1.294 GB, free: 13.84 MB / 1.014 GB Notification: Performance of matching and sorting (n=23): time 0.002835/1.254, allocations: 0.9616 MB / 1.295 GB, free: 13.39 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.173e-05/1.254, allocations: 83.33 kB / 1.295 GB, free: 13.3 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/1.254, allocations: 216 kB / 1.295 GB, free: 13.15 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/1.254, allocations: 27.67 kB / 1.295 GB, free: 13.12 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/1.255, allocations: 179.2 kB / 1.295 GB, free: 12.96 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 8.543e-05/1.255, allocations: 84.62 kB / 1.295 GB, free: 12.89 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/1.255, allocations: 65.67 kB / 1.296 GB, free: 12.86 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000162/1.255, allocations: 329.2 kB / 1.296 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/1.255, allocations: 130.8 kB / 1.296 GB, free: 12.49 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002912/1.255, allocations: 218.9 kB / 1.296 GB, free: 12.34 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005395/1.256, allocations: 358.9 kB / 1.297 GB, free: 12.12 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/1.256, allocations: 1.25 kB / 1.297 GB, free: 12.12 MB / 1.014 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001052/1.257, allocations: 0.5073 MB / 1.297 GB, free: 11.88 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/1.257, allocations: 6.922 kB / 1.297 GB, free: 11.88 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/1.257, allocations: 10.11 kB / 1.297 GB, free: 11.87 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005809/1.258, allocations: 155.4 kB / 1.297 GB, free: 11.8 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/1.258, allocations: 57.56 kB / 1.297 GB, free: 11.8 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003822/1.262, allocations: 4.188 MB / 1.301 GB, free: 7.789 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/1.262, allocations: 19.47 kB / 1.301 GB, free: 7.785 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/1.262, allocations: 10.22 kB / 1.301 GB, free: 7.785 MB / 1.014 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.00024/1.262, allocations: 170.2 kB / 1.301 GB, free: 7.637 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.071e-05/1.262, allocations: 22.91 kB / 1.302 GB, free: 7.625 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/1.263, allocations: 474.1 kB / 1.302 GB, free: 7.398 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/1.263, allocations: 2.438 kB / 1.302 GB, free: 7.398 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/1.263, allocations: 1.188 kB / 1.302 GB, free: 7.398 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/1.263, allocations: 2.438 kB / 1.302 GB, free: 7.398 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/1.265, allocations: 1.016 MB / 1.303 GB, free: 6.742 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.351e-06/1.265, allocations: 2.969 kB / 1.303 GB, free: 6.742 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/1.265, allocations: 34.7 kB / 1.303 GB, free: 6.738 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004409/1.266, allocations: 142.8 kB / 1.303 GB, free: 6.676 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.367e-05/1.266, allocations: 12.52 kB / 1.303 GB, free: 6.668 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003669/1.27, allocations: 4.163 MB / 1.307 GB, free: 2.66 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.27, allocations: 4.375 kB / 1.307 GB, free: 2.66 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/1.271, allocations: 0.6114 MB / 1.308 GB, free: 2.223 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/1.271, allocations: 125.9 kB / 1.308 GB, free: 2.105 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/1.271, allocations: 9.719 kB / 1.308 GB, free: 2.102 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/1.271, allocations: 17.69 kB / 1.308 GB, free: 2.098 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.372e-05/1.271, allocations: 30.81 kB / 1.308 GB, free: 2.086 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/1.271, allocations: 12.39 kB / 1.308 GB, free: 2.082 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001854/1.271, allocations: 159.1 kB / 1.308 GB, free: 1.98 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/1.271, allocations: 1.188 kB / 1.308 GB, free: 1.98 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0008558/1.272, allocations: 86.94 kB / 1.308 GB, free: 1.969 MB / 1.014 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.0002597/1.272, allocations: 142.3 kB / 1.308 GB, free: 1.855 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00112/1.274, allocations: 0.5626 MB / 1.309 GB, free: 1.52 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.274, allocations: 0.625 kB / 1.309 GB, free: 1.52 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006276/1.274, allocations: 400.5 kB / 1.309 GB, free: 1.234 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005581/1.275, allocations: 43.62 kB / 1.309 GB, free: 1.219 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/1.276, allocations: 0.6259 MB / 1.31 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004809/1.276, allocations: 0.7787 MB / 1.311 GB, free: 112 kB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001846/1.277, allocations: 61.55 kB / 1.311 GB, free: 104 kB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.626e-05/1.277, allocations: 27.98 kB / 1.311 GB, free: 88 kB / 1.014 GB Notification: Performance of SimCode: time 8.42e-07/1.277, allocations: 0 / 1.311 GB, free: 88 kB / 1.014 GB Notification: Performance of Templates: time 0.01072/1.287, allocations: 4.256 MB / 1.315 GB, free: 15.03 MB / 1.029 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/jenkins/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