Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001577/0.001577, allocations: 102.2 kB / 16.35 MB, free: 5.887 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.001923/0.001923, allocations: 189.8 kB / 17.29 MB, free: 5.527 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.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.461/2.461, allocations: 437.1 MB / 0.7112 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 64.38 kB / 0.8707 GB, free: 1.488 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3012, allocations: 151.7 MB / 1.019 GB, free: 9.887 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004555/0.3058, allocations: 3.065 MB / 1.022 GB, free: 6.805 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002927/0.3088, allocations: 1.921 MB / 1.024 GB, free: 4.871 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.3089, allocations: 7.938 kB / 1.024 GB, free: 4.863 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0009014/0.3098, allocations: 274.9 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004429/0.3103, allocations: 195.1 kB / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006127/0.3109, allocations: 239.3 kB / 1.024 GB, free: 4.168 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003528/0.3113, allocations: 322.9 kB / 1.025 GB, free: 3.852 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003521/0.3116, allocations: 192.9 kB / 1.025 GB, free: 3.656 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.3118, allocations: 131.5 kB / 1.025 GB, free: 3.527 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002865/0.3121, allocations: 147.5 kB / 1.025 GB, free: 3.383 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.079e-05/0.3121, allocations: 20 kB / 1.025 GB, free: 3.363 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005817/0.3127, allocations: 403.2 kB / 1.025 GB, free: 2.969 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.3129, allocations: 87.73 kB / 1.026 GB, free: 2.883 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.313, allocations: 127.4 kB / 1.026 GB, free: 2.758 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005587/0.3136, allocations: 482.7 kB / 1.026 GB, free: 2.285 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.3136, allocations: 4 kB / 1.026 GB, free: 2.281 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3136, allocations: 3.938 kB / 1.026 GB, free: 2.277 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.146e-06/0.3136, allocations: 0 / 1.026 GB, free: 2.277 MB / 0.795 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.0008242/0.3144, allocations: 0.5575 MB / 1.027 GB, free: 1.672 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3145, allocations: 12.92 kB / 1.027 GB, free: 1.66 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007967/0.3153, allocations: 112.5 kB / 1.027 GB, free: 1.551 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.3156, allocations: 266.4 kB / 1.027 GB, free: 1.254 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.3157, allocations: 16.81 kB / 1.027 GB, free: 1.238 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.873e-05/0.3157, allocations: 20.36 kB / 1.027 GB, free: 1.219 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/0.3162, allocations: 357.5 kB / 1.027 GB, free: 0.8516 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3163, allocations: 0 / 1.027 GB, free: 0.8516 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.3163, allocations: 7.984 kB / 1.027 GB, free: 0.8438 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-05/0.3163, allocations: 28.42 kB / 1.027 GB, free: 0.8125 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004358/0.3168, allocations: 293.5 kB / 1.028 GB, free: 0.5273 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.3191, allocations: 1.733 MB / 1.029 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004733/0.3196, allocations: 322.1 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.3197, allocations: 101.7 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.3198, allocations: 93.03 kB / 1.03 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001178/0.32, allocations: 42.84 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.32, allocations: 0 / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.002346/0.3223, allocations: 0.9605 MB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.3224, allocations: 89.08 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.3226, allocations: 219.7 kB / 1.031 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.3226, allocations: 25.7 kB / 1.031 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.3227, allocations: 168.1 kB / 1.031 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.991e-05/0.3228, allocations: 90.73 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.262e-05/0.3229, allocations: 57.7 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001035/0.323, allocations: 330.8 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.3232, allocations: 135.9 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.3234, allocations: 210.5 kB / 1.032 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00042/0.3239, allocations: 368.3 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.3239, allocations: 4 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007857/0.3247, allocations: 0.5041 MB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3247, allocations: 6.969 kB / 1.033 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.3247, allocations: 8 kB / 1.033 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004897/0.3252, allocations: 151.3 kB / 1.033 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.3255, allocations: 55.91 kB / 1.033 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002926/0.3284, allocations: 4.202 MB / 1.037 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.3286, allocations: 15.98 kB / 1.037 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.3286, allocations: 8 kB / 1.037 GB, free: 5.922 MB / 0.8106 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.0001698/0.3288, allocations: 173.9 kB / 1.038 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.708e-05/0.3289, allocations: 23.66 kB / 1.038 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008292/0.3297, allocations: 480.6 kB / 1.038 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3297, allocations: 4 kB / 1.038 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3298, allocations: 3.984 kB / 1.038 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.3298, allocations: 4 kB / 1.038 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.3313, allocations: 1.004 MB / 1.039 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3313, allocations: 0 / 1.039 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.3315, allocations: 35.97 kB / 1.039 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000391/0.3319, allocations: 143.5 kB / 1.039 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.3319, allocations: 11.98 kB / 1.039 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002795/0.3347, allocations: 4.178 MB / 1.043 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.3347, allocations: 3.938 kB / 1.043 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007713/0.3355, allocations: 0.6282 MB / 1.044 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.3357, allocations: 124.9 kB / 1.044 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/0.3357, allocations: 11.94 kB / 1.044 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.3359, allocations: 19.97 kB / 1.044 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.759e-05/0.336, allocations: 19.98 kB / 1.044 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.336, allocations: 8 kB / 1.044 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001409/0.3362, allocations: 156.2 kB / 1.044 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3362, allocations: 0 / 1.044 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000517/0.3367, allocations: 96 kB / 1.044 GB, free: 14.29 MB / 0.8262 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.0001958/0.3369, allocations: 133.5 kB / 1.044 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009088/0.3378, allocations: 0.5908 MB / 1.045 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3378, allocations: 0 / 1.045 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004974/0.3383, allocations: 398.2 kB / 1.045 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005076/0.3389, allocations: 52.81 kB / 1.045 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009749/0.3398, allocations: 0.6263 MB / 1.046 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.3402, allocations: 0.7908 MB / 1.047 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001501/0.3404, allocations: 58.25 kB / 1.047 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.746e-05/0.3404, allocations: 23.44 kB / 1.047 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3404, allocations: 0 / 1.047 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.007654/0.3481, allocations: 4.153 MB / 1.051 GB, free: 7.371 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches