Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001112/0.001112, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001703/0.001703, allocations: 191 kB / 16.25 MB, free: 6.625 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.39/1.39, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.721/2.721, allocations: 472.6 MB / 0.7448 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 60.47 kB / 0.9115 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3601, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.00566/0.3658, allocations: 3.12 MB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003287/0.3691, allocations: 1.893 MB / 1.073 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002235/0.3694, allocations: 4 kB / 1.073 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.3704, allocations: 271 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006381/0.3711, allocations: 175.2 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008463/0.3719, allocations: 227.5 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005209/0.3725, allocations: 322.9 kB / 1.074 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005388/0.373, allocations: 213 kB / 1.074 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000287/0.3733, allocations: 131.5 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003613/0.3737, allocations: 155.5 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.581e-05/0.3737, allocations: 20 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007687/0.3745, allocations: 399.2 kB / 1.074 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.3747, allocations: 87.78 kB / 1.074 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.3748, allocations: 119.4 kB / 1.075 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009643/0.3758, allocations: 0.5025 MB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3758, allocations: 0 / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3758, allocations: 0 / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.3758, allocations: 0 / 1.075 GB, free: 3.16 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.001206/0.3771, allocations: 0.5614 MB / 1.076 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.3771, allocations: 8.031 kB / 1.076 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009057/0.378, allocations: 112.5 kB / 1.076 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.3784, allocations: 255.9 kB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.3785, allocations: 20.8 kB / 1.076 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.3785, allocations: 20.38 kB / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006135/0.3791, allocations: 357.4 kB / 1.076 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.3792, allocations: 4 kB / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.591e-05/0.3792, allocations: 8 kB / 1.076 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.776e-05/0.3793, allocations: 24.42 kB / 1.076 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005048/0.3798, allocations: 289.5 kB / 1.077 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002439/0.3822, allocations: 1.745 MB / 1.078 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004847/0.3827, allocations: 326.1 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.3829, allocations: 109.7 kB / 1.079 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001334/0.3831, allocations: 93.03 kB / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.3831, allocations: 30.84 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 2.364e-06/0.3831, allocations: 4 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23): time 0.002607/0.3857, allocations: 0.9646 MB / 1.08 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.3858, allocations: 85.05 kB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002357/0.3861, allocations: 207.8 kB / 1.08 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.3861, allocations: 29.7 kB / 1.08 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.3862, allocations: 176.1 kB / 1.08 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.376e-05/0.3863, allocations: 90.81 kB / 1.08 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.3864, allocations: 57.64 kB / 1.081 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3866, allocations: 334.8 kB / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.3868, allocations: 127.9 kB / 1.081 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002353/0.387, allocations: 213.2 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004614/0.3875, allocations: 371.5 kB / 1.082 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3875, allocations: 0 / 1.082 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008776/0.3884, allocations: 0.5052 MB / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.798e-05/0.3884, allocations: 11.98 kB / 1.082 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3884, allocations: 0 / 1.082 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005611/0.389, allocations: 155.4 kB / 1.082 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002534/0.3893, allocations: 55.91 kB / 1.082 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003138/0.3924, allocations: 4.182 MB / 1.086 GB, free: 6.832 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.3926, allocations: 27.88 kB / 1.086 GB, free: 6.805 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.3927, allocations: 12 kB / 1.086 GB, free: 6.793 MB / 0.8419 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.0001857/0.3929, allocations: 169.8 kB / 1.086 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.914e-05/0.3929, allocations: 23.75 kB / 1.087 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000857/0.3938, allocations: 481.9 kB / 1.087 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3938, allocations: 4 kB / 1.087 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.3938, allocations: 0 / 1.087 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.3938, allocations: 7.984 kB / 1.087 GB, free: 6.098 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.3954, allocations: 1.009 MB / 1.088 GB, free: 4.996 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3954, allocations: 0 / 1.088 GB, free: 4.996 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.3956, allocations: 40.16 kB / 1.088 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003932/0.396, allocations: 135.3 kB / 1.088 GB, free: 4.812 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.142e-05/0.396, allocations: 15.94 kB / 1.088 GB, free: 4.797 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00285/0.3989, allocations: 4.175 MB / 1.092 GB, free: 300 kB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.3989, allocations: 4 kB / 1.092 GB, free: 296 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008465/0.3998, allocations: 0.6294 MB / 1.093 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.3999, allocations: 128.8 kB / 1.093 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/0.4, allocations: 11.94 kB / 1.093 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.4002, allocations: 15.98 kB / 1.093 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.509e-05/0.4003, allocations: 31.91 kB / 1.093 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.4003, allocations: 8 kB / 1.093 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001411/0.4005, allocations: 157.5 kB / 1.093 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4005, allocations: 0 / 1.093 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005538/0.401, allocations: 88 kB / 1.093 GB, free: 15.16 MB / 0.8575 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.0002449/0.4013, allocations: 136.1 kB / 1.093 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001034/0.4023, allocations: 0.6002 MB / 1.094 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.4023, allocations: 128 / 1.094 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0005264/0.4029, allocations: 405.1 kB / 1.094 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005086/0.4034, allocations: 47.62 kB / 1.094 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.4045, allocations: 0.733 MB / 1.095 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.4049, allocations: 0.7831 MB / 1.096 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001805/0.4051, allocations: 58.23 kB / 1.096 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.998e-05/0.4052, allocations: 19.44 kB / 1.096 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.4052, allocations: 0 / 1.096 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of Templates: time 0.00902/0.4142, allocations: 4.174 MB / 1.1 GB, free: 8.105 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)