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.004868/0.004868, allocations: 101.1 kB / 15.73 MB, free: 5.992 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.00111/0.00111, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002114/0.002114, allocations: 291.9 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9095/0.9095, allocations: 169.3 MB / 0.4983 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 95.84 kB / 0.6814 GB, free: 7.02 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4069/0.4087, allocations: 86.97 MB / 0.7664 GB, free: 3.965 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004498/0.4133, allocations: 3.071 MB / 0.7694 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002861/0.4161, allocations: 1.902 MB / 0.7712 GB, free: 14.97 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.4163, allocations: 4 kB / 0.7712 GB, free: 14.96 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009258/0.4173, allocations: 282.9 kB / 0.7715 GB, free: 14.69 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005266/0.4179, allocations: 191.1 kB / 0.7717 GB, free: 14.5 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006582/0.4185, allocations: 257.2 kB / 0.7719 GB, free: 14.25 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004147/0.419, allocations: 326.7 kB / 0.7722 GB, free: 13.93 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003557/0.4193, allocations: 185 kB / 0.7724 GB, free: 13.74 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002251/0.4196, allocations: 131.5 kB / 0.7725 GB, free: 13.61 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003199/0.4199, allocations: 147.5 kB / 0.7727 GB, free: 13.47 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.4199, allocations: 24 kB / 0.7727 GB, free: 13.45 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000621/0.4206, allocations: 399.2 kB / 0.7731 GB, free: 13.05 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.4207, allocations: 91.72 kB / 0.7732 GB, free: 12.96 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.4208, allocations: 115.5 kB / 0.7733 GB, free: 12.85 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006997/0.4215, allocations: 493.1 kB / 0.7737 GB, free: 12.37 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4215, allocations: 4 kB / 0.7738 GB, free: 12.37 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.182e-06/0.4215, allocations: 0 / 0.7738 GB, free: 12.37 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.4216, allocations: 0 / 0.7738 GB, free: 12.37 MB / 0.545 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.0008477/0.4224, allocations: 0.5576 MB / 0.7743 GB, free: 11.76 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.4225, allocations: 12.03 kB / 0.7743 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008094/0.4233, allocations: 108.5 kB / 0.7744 GB, free: 11.64 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.4236, allocations: 270.6 kB / 0.7747 GB, free: 11.34 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.4237, allocations: 24.73 kB / 0.7747 GB, free: 11.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.4237, allocations: 16.38 kB / 0.7747 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005162/0.4242, allocations: 361.4 kB / 0.7751 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.4242, allocations: 0 / 0.7751 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.4243, allocations: 4 kB / 0.7751 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.186e-05/0.4243, allocations: 28.42 kB / 0.7751 GB, free: 10.9 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004463/0.4248, allocations: 293.5 kB / 0.7754 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002003/0.4268, allocations: 1.733 MB / 0.7771 GB, free: 8.711 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004515/0.4272, allocations: 326.2 kB / 0.7774 GB, free: 8.355 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.4274, allocations: 109.6 kB / 0.7775 GB, free: 8.242 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.4275, allocations: 93.05 kB / 0.7776 GB, free: 8.133 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.4276, allocations: 34.56 kB / 0.7776 GB, free: 8.09 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.4276, allocations: 0 / 0.7776 GB, free: 8.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002371/0.4299, allocations: 0.9655 MB / 0.7785 GB, free: 7.09 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.43, allocations: 85.05 kB / 0.7786 GB, free: 6.988 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.4302, allocations: 207.9 kB / 0.7788 GB, free: 6.773 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.4302, allocations: 25.7 kB / 0.7788 GB, free: 6.742 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.815e-05/0.4303, allocations: 176 kB / 0.779 GB, free: 6.566 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.16e-05/0.4304, allocations: 82.84 kB / 0.7791 GB, free: 6.484 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.958e-05/0.4305, allocations: 65.61 kB / 0.7792 GB, free: 6.414 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.4306, allocations: 326.8 kB / 0.7795 GB, free: 6.086 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001878/0.4308, allocations: 127.9 kB / 0.7796 GB, free: 5.961 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002353/0.4311, allocations: 209.4 kB / 0.7798 GB, free: 5.723 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004454/0.4315, allocations: 367.6 kB / 0.7801 GB, free: 5.332 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.4315, allocations: 4 kB / 0.7801 GB, free: 5.328 MB / 0.545 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008252/0.4324, allocations: 0.5076 MB / 0.7806 GB, free: 4.805 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.4324, allocations: 4 kB / 0.7806 GB, free: 4.801 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.4324, allocations: 7.938 kB / 0.7806 GB, free: 4.793 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000513/0.4329, allocations: 159.4 kB / 0.7808 GB, free: 4.625 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.4332, allocations: 59.89 kB / 0.7809 GB, free: 4.566 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002971/0.4362, allocations: 4.186 MB / 0.7849 GB, free: 48 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000187/0.4364, allocations: 15.98 kB / 0.785 GB, free: 32 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.802e-05/0.4364, allocations: 15.98 kB / 0.785 GB, free: 16 kB / 0.545 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.0001881/0.4366, allocations: 162.4 kB / 0.7851 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.877e-05/0.4367, allocations: 19.81 kB / 0.7851 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008581/0.4375, allocations: 486.4 kB / 0.7856 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.4375, allocations: 4 kB / 0.7856 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4376, allocations: 0 / 0.7856 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4376, allocations: 0 / 0.7856 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001496/0.4391, allocations: 1.012 MB / 0.7866 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.4391, allocations: 4 kB / 0.7866 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.4392, allocations: 35.92 kB / 0.7866 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003841/0.4396, allocations: 139.3 kB / 0.7868 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.4397, allocations: 12 kB / 0.7868 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002665/0.4423, allocations: 4.155 MB / 0.7908 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4423, allocations: 4.031 kB / 0.7908 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007544/0.4431, allocations: 0.6209 MB / 0.7915 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.4432, allocations: 124.8 kB / 0.7916 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.4433, allocations: 11.94 kB / 0.7916 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.4435, allocations: 19.98 kB / 0.7916 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.4436, allocations: 23.91 kB / 0.7916 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.4436, allocations: 12 kB / 0.7916 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001392/0.4437, allocations: 166.1 kB / 0.7918 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4437, allocations: 0 / 0.7918 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005114/0.4443, allocations: 84 kB / 0.7919 GB, free: 8.41 MB / 0.5606 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.0001921/0.4445, allocations: 143.1 kB / 0.792 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009068/0.4454, allocations: 0.5867 MB / 0.7926 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4454, allocations: 0 / 0.7926 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000518/0.4459, allocations: 409.4 kB / 0.793 GB, free: 7.223 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004866/0.4464, allocations: 37.67 kB / 0.793 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009986/0.4474, allocations: 0.6196 MB / 0.7936 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.4478, allocations: 0.7869 MB / 0.7944 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001553/0.448, allocations: 54.25 kB / 0.7944 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.139e-05/0.448, allocations: 23.38 kB / 0.7945 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.448, allocations: 8 kB / 0.7945 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of Templates: time 0.007987/0.456, allocations: 4.204 MB / 0.7986 GB, free: 1.457 MB / 0.5606 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)