Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001037/0.001037, allocations: 106.8 kB / 16.37 MB, free: 6.477 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.0009749/0.0009749, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.27/1.27, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0021/0.0021, allocations: 285.9 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9133/0.9133, allocations: 169.3 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001707/0.001707, allocations: 93.83 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1454, allocations: 86.98 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004275/0.1497, allocations: 3.052 MB / 0.6846 GB, free: 4.398 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.1523, allocations: 1.913 MB / 0.6865 GB, free: 2.473 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.702e-05/0.1524, allocations: 4 kB / 0.6865 GB, free: 2.469 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000815/0.1533, allocations: 286.8 kB / 0.6867 GB, free: 2.188 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003766/0.1536, allocations: 195.1 kB / 0.6869 GB, free: 1.996 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000537/0.1542, allocations: 243.2 kB / 0.6872 GB, free: 1.758 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003249/0.1545, allocations: 318.9 kB / 0.6875 GB, free: 1.445 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002956/0.1548, allocations: 188.9 kB / 0.6876 GB, free: 1.258 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.155, allocations: 135.5 kB / 0.6878 GB, free: 1.125 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/0.1553, allocations: 143.5 kB / 0.6879 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.135e-05/0.1553, allocations: 20 kB / 0.6879 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005243/0.1558, allocations: 403.2 kB / 0.6883 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.225e-05/0.1559, allocations: 87.8 kB / 0.6884 GB, free: 496 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.1561, allocations: 123.4 kB / 0.6885 GB, free: 372 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2414/0.3975, allocations: 487.9 kB / 0.689 GB, free: 13.32 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3976, allocations: 0.6094 kB / 0.689 GB, free: 13.32 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3976, allocations: 0 / 0.689 GB, free: 13.32 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.3976, allocations: 0.9688 kB / 0.689 GB, free: 13.32 MB / 494.1 MB 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.0008061/0.3984, allocations: 0.5546 MB / 0.6895 GB, free: 12.93 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.3984, allocations: 9.688 kB / 0.6895 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008117/0.3992, allocations: 112.3 kB / 0.6896 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.3996, allocations: 271.8 kB / 0.6899 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.3996, allocations: 15.12 kB / 0.6899 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.3996, allocations: 17.89 kB / 0.6899 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000493/0.4001, allocations: 355.5 kB / 0.6903 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.4002, allocations: 4.875 kB / 0.6903 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.4002, allocations: 6.625 kB / 0.6903 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.334e-05/0.4002, allocations: 26.58 kB / 0.6903 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.4007, allocations: 295.1 kB / 0.6906 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.4025, allocations: 1.73 MB / 0.6923 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004235/0.403, allocations: 329.1 kB / 0.6926 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.4031, allocations: 107.4 kB / 0.6927 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.121e-05/0.4032, allocations: 94.89 kB / 0.6928 GB, free: 11.15 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.561e-05/0.4033, allocations: 37.58 kB / 0.6928 GB, free: 11.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.4033, allocations: 1.188 kB / 0.6928 GB, free: 11.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002325/0.4056, allocations: 0.9623 MB / 0.6938 GB, free: 10.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.426e-05/0.4056, allocations: 84.2 kB / 0.6938 GB, free: 10.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001845/0.4058, allocations: 213.7 kB / 0.694 GB, free: 10.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/0.4059, allocations: 30.95 kB / 0.6941 GB, free: 10.64 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.807e-05/0.4059, allocations: 170.9 kB / 0.6942 GB, free: 10.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.764e-05/0.406, allocations: 78.98 kB / 0.6943 GB, free: 10.47 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.468e-05/0.4061, allocations: 65.98 kB / 0.6944 GB, free: 10.45 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.868e-05/0.4061, allocations: 328.4 kB / 0.6947 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.4063, allocations: 129.7 kB / 0.6948 GB, free: 10.14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.4066, allocations: 211.4 kB / 0.695 GB, free: 10.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004164/0.407, allocations: 369.7 kB / 0.6954 GB, free: 9.965 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.407, allocations: 2.781 kB / 0.6954 GB, free: 9.965 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008052/0.4078, allocations: 0.499 MB / 0.6958 GB, free: 9.887 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.4078, allocations: 6.062 kB / 0.6959 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.4078, allocations: 4.781 kB / 0.6959 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004871/0.4083, allocations: 154.2 kB / 0.696 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002508/0.4086, allocations: 60.17 kB / 0.6961 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002134/0.4107, allocations: 4.189 MB / 0.7002 GB, free: 5.973 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.411, allocations: 22.81 kB / 0.7002 GB, free: 5.965 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.411, allocations: 14.53 kB / 0.7002 GB, free: 5.965 MB / 494.1 MB 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.000131/0.4111, allocations: 169.8 kB / 0.7004 GB, free: 5.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.94e-05/0.4112, allocations: 18.84 kB / 0.7004 GB, free: 5.812 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007982/0.412, allocations: 486 kB / 0.7008 GB, free: 5.59 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.412, allocations: 2.781 kB / 0.7008 GB, free: 5.59 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.412, allocations: 1.156 kB / 0.7008 GB, free: 5.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.412, allocations: 2.25 kB / 0.7008 GB, free: 5.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.4135, allocations: 1.013 MB / 0.7018 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.4135, allocations: 2.031 kB / 0.7018 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.4136, allocations: 34.97 kB / 0.7019 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003919/0.414, allocations: 144.3 kB / 0.702 GB, free: 4.906 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.4141, allocations: 8.906 kB / 0.702 GB, free: 4.902 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001972/0.416, allocations: 4.167 MB / 0.7061 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.4161, allocations: 5.953 kB / 0.7061 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006903/0.4168, allocations: 0.6232 MB / 0.7067 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.4169, allocations: 122.5 kB / 0.7068 GB, free: 380 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/0.4169, allocations: 17.19 kB / 0.7068 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.4172, allocations: 19.16 kB / 0.7068 GB, free: 364 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.4172, allocations: 28.69 kB / 0.7069 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.4173, allocations: 12.31 kB / 0.7069 GB, free: 352 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001261/0.4174, allocations: 161.2 kB / 0.707 GB, free: 248 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4174, allocations: 0 / 0.707 GB, free: 248 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005089/0.4179, allocations: 91.94 kB / 0.7071 GB, free: 232 kB / 494.1 MB 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.0001652/0.4181, allocations: 136.4 kB / 0.7073 GB, free: 132 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009124/0.419, allocations: 0.5801 MB / 0.7078 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.419, allocations: 0.8438 kB / 0.7078 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005164/0.4195, allocations: 407.2 kB / 0.7082 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005069/0.4201, allocations: 49.36 kB / 0.7083 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009831/0.4211, allocations: 0.6304 MB / 0.7089 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.4214, allocations: 0.7809 MB / 0.7096 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000164/0.4216, allocations: 55.17 kB / 0.7097 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.198e-05/0.4216, allocations: 25.05 kB / 0.7097 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.4217, allocations: 0 / 0.7097 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of Templates: time 0.008615/0.4303, allocations: 4.161 MB / 0.7138 GB, free: 14.13 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)