Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.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.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") translateModel(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001165, allocations: 106.9 kB / 16.27 MB, free: 6.414 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.001256/0.001256, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.338/1.338, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002362/0.002362, allocations: 284.5 kB / 291.3 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9494/0.9494, allocations: 169.2 MB / 0.4988 GB, free: 4.496 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 90.58 kB / 0.5959 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.157, allocations: 86.98 MB / 0.6808 GB, free: 8.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.005212/0.1622, allocations: 3.193 MB / 0.684 GB, free: 4.988 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.1646, allocations: 1.375 MB / 0.6853 GB, free: 3.605 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/0.1648, allocations: 8 kB / 0.6853 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.1659, allocations: 334.7 kB / 0.6856 GB, free: 3.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004175/0.1664, allocations: 143.2 kB / 0.6858 GB, free: 3.129 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004168/0.1668, allocations: 154.5 kB / 0.6859 GB, free: 2.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.1672, allocations: 326.9 kB / 0.6862 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004776/0.1677, allocations: 255.7 kB / 0.6865 GB, free: 2.41 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.168, allocations: 139.5 kB / 0.6866 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003239/0.1683, allocations: 151.4 kB / 0.6867 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.154e-05/0.1684, allocations: 20 kB / 0.6868 GB, free: 2.105 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003284/0.1687, allocations: 167.6 kB / 0.6869 GB, free: 1.941 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.1688, allocations: 87.77 kB / 0.687 GB, free: 1.855 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.1689, allocations: 123.4 kB / 0.6871 GB, free: 1.734 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004842/0.1694, allocations: 350.9 kB / 0.6875 GB, free: 1.391 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1695, allocations: 0 / 0.6875 GB, free: 1.391 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1695, allocations: 0 / 0.6875 GB, free: 1.391 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.1695, allocations: 4 kB / 0.6875 GB, free: 1.387 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009496/0.1704, allocations: 0.5457 MB / 0.688 GB, free: 0.793 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.1705, allocations: 8.031 kB / 0.688 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006133/0.1711, allocations: 80.58 kB / 0.6881 GB, free: 0.707 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.1714, allocations: 248.7 kB / 0.6883 GB, free: 436 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.1715, allocations: 16.8 kB / 0.6883 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.638e-05/0.1715, allocations: 24.38 kB / 0.6884 GB, free: 396 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.172, allocations: 316.6 kB / 0.6887 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.172, allocations: 0 / 0.6887 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.172, allocations: 8 kB / 0.6887 GB, free: 48 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.319e-05/0.1721, allocations: 16.44 kB / 0.6887 GB, free: 32 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2882/0.4602, allocations: 211.1 kB / 0.6889 GB, free: 18.35 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.4618, allocations: 1.492 MB / 0.6903 GB, free: 17.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004077/0.4622, allocations: 208.3 kB / 0.6905 GB, free: 17.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.283e-05/0.4623, allocations: 44.12 kB / 0.6906 GB, free: 17.06 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.4623, allocations: 3.75 kB / 0.6906 GB, free: 17.06 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.4623, allocations: 35.69 kB / 0.6906 GB, free: 17.02 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 2.023e-06/0.4623, allocations: 0 / 0.6906 GB, free: 17.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005602/0.4629, allocations: 261.9 kB / 0.6909 GB, free: 16.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.256e-05/0.4629, allocations: 53.06 kB / 0.6909 GB, free: 16.82 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.4631, allocations: 201.5 kB / 0.6911 GB, free: 16.71 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.4632, allocations: 29.67 kB / 0.6911 GB, free: 16.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.482e-05/0.4633, allocations: 183.9 kB / 0.6913 GB, free: 16.56 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.4633, allocations: 28.59 kB / 0.6913 GB, free: 16.54 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-05/0.4634, allocations: 36.97 kB / 0.6914 GB, free: 16.53 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.841e-05/0.4634, allocations: 328.4 kB / 0.6917 GB, free: 16.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.4635, allocations: 43.39 kB / 0.6917 GB, free: 16.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.4637, allocations: 118.2 kB / 0.6918 GB, free: 16.12 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.4639, allocations: 167.5 kB / 0.692 GB, free: 16.04 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4639, allocations: 5 kB / 0.692 GB, free: 16.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003672/0.4643, allocations: 209.9 kB / 0.6922 GB, free: 15.96 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.4643, allocations: 5.844 kB / 0.6922 GB, free: 15.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.4643, allocations: 11.39 kB / 0.6922 GB, free: 15.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001679/0.4645, allocations: 31.75 kB / 0.6923 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.4647, allocations: 32.42 kB / 0.6923 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008009/0.4655, allocations: 1.431 MB / 0.6937 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001392/0.4656, allocations: 19.8 kB / 0.6937 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.4656, allocations: 8.75 kB / 0.6937 GB, free: 14.52 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.4658, allocations: 151.9 kB / 0.6939 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.216e-05/0.4658, allocations: 21 kB / 0.6939 GB, free: 14.38 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.179e-05/0.4658, allocations: 19.31 kB / 0.6939 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.4658, allocations: 1.984 kB / 0.6939 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.4659, allocations: 1.375 kB / 0.6939 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.4659, allocations: 0.5156 kB / 0.6939 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005436/0.4664, allocations: 495.4 kB / 0.6944 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4664, allocations: 0 / 0.6944 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.594e-05/0.4665, allocations: 11.44 kB / 0.6944 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.917e-05/0.4666, allocations: 23.86 kB / 0.6944 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.4666, allocations: 0.8438 kB / 0.6944 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006907/0.4673, allocations: 1.426 MB / 0.6958 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4673, allocations: 0 / 0.6958 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002614/0.4676, allocations: 240.8 kB / 0.696 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.726e-05/0.4676, allocations: 100 kB / 0.6961 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.4677, allocations: 6.031 kB / 0.6961 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.4678, allocations: 6.203 kB / 0.6961 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.4678, allocations: 9.188 kB / 0.6961 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.4679, allocations: 2.797 kB / 0.6961 GB, free: 12.25 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.468, allocations: 154.3 kB / 0.6963 GB, free: 12.15 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.468, allocations: 3.938 kB / 0.6963 GB, free: 12.15 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.4683, allocations: 56.03 kB / 0.6963 GB, free: 12.14 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.789e-05/0.4684, allocations: 101.4 kB / 0.6964 GB, free: 12.05 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004309/0.4689, allocations: 237.1 kB / 0.6967 GB, free: 11.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4689, allocations: 0 / 0.6967 GB, free: 11.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.4691, allocations: 155.4 kB / 0.6968 GB, free: 11.79 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.4695, allocations: 39.31 kB / 0.6969 GB, free: 11.77 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006565/0.4701, allocations: 437.7 kB / 0.6973 GB, free: 11.49 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.4703, allocations: 0.7565 MB / 0.698 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.446e-05/0.4704, allocations: 16.92 kB / 0.698 GB, free: 10.78 MB / 494.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4704, allocations: 0 / 0.698 GB, free: 10.78 MB / 494.1 MB Notification: Performance of Templates: time 0.006106/0.4765, allocations: 3.237 MB / 0.7012 GB, free: 10.55 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)