Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.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_9_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_9_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.001733/0.001733, allocations: 100.1 kB / 15.88 MB, free: 12 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.002005/0.002005, allocations: 197.8 kB / 16.79 MB, free: 6.809 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.42/1.42, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.626/2.626, allocations: 390.2 MB / 0.6649 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 55.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8126/0.8141, allocations: 140.4 MB / 0.9496 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004067/0.8182, allocations: 3.12 MB / 0.9526 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002518/0.8208, allocations: 1.932 MB / 0.9545 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.821, allocations: 7.938 kB / 0.9545 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007682/0.8217, allocations: 256.1 kB / 0.9548 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004187/0.8222, allocations: 186.2 kB / 0.9549 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00056/0.8228, allocations: 213.6 kB / 0.9551 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003798/0.8232, allocations: 447.5 kB / 0.9556 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003517/0.8235, allocations: 167.6 kB / 0.9557 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.8237, allocations: 117.7 kB / 0.9558 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.8239, allocations: 154.4 kB / 0.956 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.271e-05/0.824, allocations: 13.66 kB / 0.956 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006645/0.8246, allocations: 477 kB / 0.9565 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.111e-05/0.8247, allocations: 76.64 kB / 0.9565 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.8249, allocations: 120.1 kB / 0.9566 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004163/0.8253, allocations: 369.9 kB / 0.957 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.433e-06/0.8253, allocations: 0 / 0.957 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.142e-06/0.8253, allocations: 0 / 0.957 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.8253, allocations: 5.125 kB / 0.957 GB, free: 3.738 MB / 0.7169 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.0008101/0.8261, allocations: 0.5599 MB / 0.9576 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.8262, allocations: 8.781 kB / 0.9576 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007979/0.827, allocations: 109.1 kB / 0.9577 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.8273, allocations: 266.2 kB / 0.9579 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.8273, allocations: 13.06 kB / 0.9579 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.407e-05/0.8273, allocations: 16.75 kB / 0.9579 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.8278, allocations: 361.7 kB / 0.9583 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.8278, allocations: 1.281 kB / 0.9583 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.8279, allocations: 7.094 kB / 0.9583 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-05/0.8279, allocations: 25.48 kB / 0.9583 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004493/0.8284, allocations: 297.4 kB / 0.9586 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.8306, allocations: 1.741 MB / 0.9603 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005619/0.8311, allocations: 323.5 kB / 0.9606 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.8313, allocations: 105.6 kB / 0.9607 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001095/0.8315, allocations: 91.41 kB / 0.9608 GB, free: 464 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.8315, allocations: 40.62 kB / 0.9608 GB, free: 416 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.994e-06/0.8315, allocations: 3.938 kB / 0.9608 GB, free: 412 kB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.002976/0.8345, allocations: 0.9518 MB / 0.9618 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.8346, allocations: 88.39 kB / 0.9619 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.8348, allocations: 219.5 kB / 0.9621 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.8348, allocations: 27.05 kB / 0.9621 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.835, allocations: 172.3 kB / 0.9623 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.071e-05/0.8351, allocations: 81.19 kB / 0.9623 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.8352, allocations: 62.64 kB / 0.9624 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.8354, allocations: 340.3 kB / 0.9627 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.8356, allocations: 134.6 kB / 0.9628 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002656/0.8359, allocations: 200.8 kB / 0.963 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004933/0.8364, allocations: 376.5 kB / 0.9634 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.8364, allocations: 1.406 kB / 0.9634 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000899/0.8373, allocations: 0.502 MB / 0.9639 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.8373, allocations: 15.27 kB / 0.9639 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.8373, allocations: 2.188 kB / 0.9639 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005455/0.8379, allocations: 146.6 kB / 0.964 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.8382, allocations: 56.44 kB / 0.9641 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003331/0.8415, allocations: 3.97 MB / 0.968 GB, free: 10.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.8418, allocations: 21.16 kB / 0.968 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.8418, allocations: 9.906 kB / 0.968 GB, free: 10.07 MB / 0.7325 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.0002527/0.8421, allocations: 167.5 kB / 0.9682 GB, free: 9.914 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.55e-05/0.8421, allocations: 18.97 kB / 0.9682 GB, free: 9.906 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009195/0.8431, allocations: 469 kB / 0.9686 GB, free: 9.617 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.8431, allocations: 6.938 kB / 0.9686 GB, free: 9.613 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.8431, allocations: 1.812 kB / 0.9686 GB, free: 9.613 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.8431, allocations: 7.969 kB / 0.9686 GB, free: 9.605 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.8448, allocations: 1.014 MB / 0.9696 GB, free: 8.812 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.8448, allocations: 2.469 kB / 0.9696 GB, free: 8.812 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.845, allocations: 37.44 kB / 0.9697 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004576/0.8454, allocations: 151.9 kB / 0.9698 GB, free: 8.707 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.8455, allocations: 12.66 kB / 0.9698 GB, free: 8.699 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002728/0.8482, allocations: 3.93 MB / 0.9737 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.574e-06/0.8482, allocations: 6.469 kB / 0.9737 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008308/0.8491, allocations: 0.6253 MB / 0.9743 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.8492, allocations: 134.4 kB / 0.9744 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.919e-05/0.8492, allocations: 12.81 kB / 0.9744 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.8495, allocations: 21.06 kB / 0.9744 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.8495, allocations: 27.5 kB / 0.9745 GB, free: 4.105 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.8496, allocations: 11.38 kB / 0.9745 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001541/0.8497, allocations: 154.2 kB / 0.9746 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8497, allocations: 0 / 0.9746 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005734/0.8503, allocations: 94.05 kB / 0.9747 GB, free: 3.969 MB / 0.7325 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.0001976/0.8505, allocations: 139.3 kB / 0.9749 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009327/0.8515, allocations: 0.573 MB / 0.9754 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.8515, allocations: 0.625 kB / 0.9754 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005128/0.852, allocations: 396.9 kB / 0.9758 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005233/0.8525, allocations: 44.62 kB / 0.9758 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.8537, allocations: 0.7766 MB / 0.9766 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.8541, allocations: 0.784 MB / 0.9774 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.709e-05/0.8542, allocations: 24.72 kB / 0.9774 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of SimCode: time 1.533e-06/0.8542, allocations: 0 / 0.9774 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of Templates: time 0.01011/0.8643, allocations: 7.615 MB / 0.9848 GB, free: 12.5 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches