Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 96.42 kB / 19.7 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 206.9 kB / 22.99 MB, free: 4.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.226/3.226, allocations: 0.49 GB / 0.7959 GB, free: 35.54 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 73.11 kB / 1.155 GB, free: 25.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.3943, allocations: 176.1 MB / 1.327 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005934/0.4002, allocations: 3.066 MB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003617/0.4038, allocations: 1.885 MB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002238/0.404, allocations: 7.938 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.4052, allocations: 282.8 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006209/0.4058, allocations: 199.1 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007419/0.4065, allocations: 249.6 kB / 1.333 GB, free: 11.32 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005261/0.407, allocations: 322.9 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003788/0.4074, allocations: 157.1 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003153/0.4077, allocations: 135.5 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003773/0.4081, allocations: 155.4 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.012e-05/0.4082, allocations: 20 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007389/0.4089, allocations: 391.2 kB / 1.334 GB, free: 10.15 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.409, allocations: 95.66 kB / 1.334 GB, free: 10.06 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.4092, allocations: 91.59 kB / 1.334 GB, free: 9.969 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0008808/0.4101, allocations: 0.4944 MB / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4101, allocations: 0 / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.943e-06/0.4101, allocations: 0 / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.387e-05/0.4101, allocations: 4 kB / 1.334 GB, free: 9.469 MB / 1.029 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.001093/0.4112, allocations: 0.4932 MB / 1.335 GB, free: 8.945 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.4112, allocations: 8.031 kB / 1.335 GB, free: 8.938 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008621/0.4121, allocations: 112.6 kB / 1.335 GB, free: 8.828 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.4125, allocations: 212.7 kB / 1.335 GB, free: 8.598 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.4125, allocations: 20.81 kB / 1.335 GB, free: 8.578 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.97e-05/0.4125, allocations: 16.38 kB / 1.335 GB, free: 8.562 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006095/0.4132, allocations: 412.4 kB / 1.336 GB, free: 8.121 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.4132, allocations: 0 / 1.336 GB, free: 8.121 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.4132, allocations: 4 kB / 1.336 GB, free: 8.117 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-05/0.4132, allocations: 28.42 kB / 1.336 GB, free: 8.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004765/0.4137, allocations: 289.5 kB / 1.336 GB, free: 7.809 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.4158, allocations: 1.233 MB / 1.337 GB, free: 6.52 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004751/0.4163, allocations: 241 kB / 1.337 GB, free: 6.266 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.4164, allocations: 101.7 kB / 1.337 GB, free: 6.16 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 7.771e-05/0.4165, allocations: 11.98 kB / 1.337 GB, free: 6.148 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.4165, allocations: 38.5 kB / 1.338 GB, free: 6.102 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.382e-06/0.4165, allocations: 4 kB / 1.338 GB, free: 6.098 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.002559/0.4191, allocations: 0.8936 MB / 1.338 GB, free: 5.188 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.4192, allocations: 81.09 kB / 1.338 GB, free: 5.09 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.4194, allocations: 215 kB / 1.339 GB, free: 4.867 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.4194, allocations: 25.7 kB / 1.339 GB, free: 4.836 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.4196, allocations: 184.5 kB / 1.339 GB, free: 4.648 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.489e-05/0.4197, allocations: 91.2 kB / 1.339 GB, free: 4.559 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.4198, allocations: 53.7 kB / 1.339 GB, free: 4.5 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.4199, allocations: 330.8 kB / 1.339 GB, free: 4.168 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/0.4201, allocations: 135.9 kB / 1.339 GB, free: 4.035 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.4204, allocations: 209.2 kB / 1.34 GB, free: 3.797 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005178/0.4209, allocations: 371.5 kB / 1.34 GB, free: 3.402 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4209, allocations: 4 kB / 1.34 GB, free: 3.398 MB / 1.029 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009354/0.4219, allocations: 0.5161 MB / 1.341 GB, free: 2.863 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.4219, allocations: 4 kB / 1.341 GB, free: 2.859 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.4219, allocations: 4 kB / 1.341 GB, free: 2.855 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005706/0.4225, allocations: 143.3 kB / 1.341 GB, free: 2.703 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.4228, allocations: 59.91 kB / 1.341 GB, free: 2.645 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003518/0.4263, allocations: 3.938 MB / 1.345 GB, free: 14.45 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.4265, allocations: 19.97 kB / 1.345 GB, free: 14.43 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.959e-05/0.4265, allocations: 16 kB / 1.345 GB, free: 14.41 MB / 1.045 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.0002001/0.4267, allocations: 158.3 kB / 1.345 GB, free: 14.25 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/0.4268, allocations: 27.84 kB / 1.345 GB, free: 14.22 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009014/0.4277, allocations: 464.5 kB / 1.345 GB, free: 13.75 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.4277, allocations: 8 kB / 1.345 GB, free: 13.75 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4277, allocations: 3.938 kB / 1.345 GB, free: 13.74 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.4277, allocations: 3.984 kB / 1.345 GB, free: 13.74 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.4293, allocations: 0.8942 MB / 1.346 GB, free: 12.77 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.4293, allocations: 4 kB / 1.346 GB, free: 12.77 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001438/0.4294, allocations: 31.97 kB / 1.346 GB, free: 12.73 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004191/0.4299, allocations: 139.2 kB / 1.346 GB, free: 12.59 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.4299, allocations: 12 kB / 1.346 GB, free: 12.57 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003247/0.4331, allocations: 3.896 MB / 1.35 GB, free: 8.422 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.4331, allocations: 4.438 kB / 1.35 GB, free: 8.418 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009073/0.434, allocations: 0.6296 MB / 1.351 GB, free: 7.738 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.4342, allocations: 47.83 kB / 1.351 GB, free: 7.691 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/0.4342, allocations: 8 kB / 1.351 GB, free: 7.684 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.4345, allocations: 23.97 kB / 1.351 GB, free: 7.66 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/0.4345, allocations: 27.81 kB / 1.351 GB, free: 7.633 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.4345, allocations: 8 kB / 1.351 GB, free: 7.625 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000154/0.4347, allocations: 156.2 kB / 1.351 GB, free: 7.473 MB / 1.045 GB Notification: Performance of sort global known variables: time 6.1e-08/0.4347, allocations: 0 / 1.351 GB, free: 7.473 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0005278/0.4352, allocations: 95.92 kB / 1.351 GB, free: 7.379 MB / 1.045 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.0002417/0.4355, allocations: 143 kB / 1.351 GB, free: 7.227 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009929/0.4364, allocations: 0.5714 MB / 1.352 GB, free: 6.629 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.4364, allocations: 0 / 1.352 GB, free: 6.629 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005528/0.437, allocations: 385.1 kB / 1.352 GB, free: 6.227 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005037/0.4375, allocations: 38.36 kB / 1.352 GB, free: 6.191 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.4386, allocations: 0.6405 MB / 1.353 GB, free: 5.508 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002046/0.4388, allocations: 173.2 kB / 1.353 GB, free: 5.316 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001635/0.439, allocations: 62.23 kB / 1.353 GB, free: 5.254 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.387e-05/0.439, allocations: 19.44 kB / 1.353 GB, free: 5.234 MB / 1.045 GB Notification: Performance of SimCode: time 3.1e-07/0.439, allocations: 0 / 1.353 GB, free: 5.234 MB / 1.045 GB Notification: Performance of Templates: time 0.009303/0.4483, allocations: 4.516 MB / 1.357 GB, free: 0.7734 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.139974126999732]