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.001118/0.001118, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001116/0.001116, allocations: 191 kB / 17.29 MB, free: 5.516 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.282/1.282, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002092/0.002092, allocations: 288.2 kB / 291.4 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9289/0.9289, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 94.47 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1562, allocations: 86.97 MB / 0.6816 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004552/0.1608, allocations: 3.208 MB / 0.6847 GB, free: 4.234 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.1629, allocations: 1.371 MB / 0.6861 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.163, allocations: 7.938 kB / 0.6861 GB, free: 2.848 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000938/0.1639, allocations: 338.7 kB / 0.6864 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002979/0.1643, allocations: 151.2 kB / 0.6865 GB, free: 2.367 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.1646, allocations: 146.8 kB / 0.6867 GB, free: 2.227 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.1649, allocations: 330.9 kB / 0.687 GB, free: 1.902 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004144/0.1653, allocations: 251.7 kB / 0.6872 GB, free: 1.652 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.1655, allocations: 139.5 kB / 0.6874 GB, free: 1.516 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002499/0.1658, allocations: 147.4 kB / 0.6875 GB, free: 1.371 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.175e-05/0.1658, allocations: 20 kB / 0.6875 GB, free: 1.352 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002569/0.1661, allocations: 167.6 kB / 0.6877 GB, free: 1.188 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.5e-05/0.1662, allocations: 83.73 kB / 0.6878 GB, free: 1.105 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.1663, allocations: 131.4 kB / 0.6879 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003683/0.1667, allocations: 350.9 kB / 0.6882 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1667, allocations: 0 / 0.6882 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1667, allocations: 4 kB / 0.6882 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.1667, allocations: 0 / 0.6882 GB, free: 0.6289 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.0007455/0.1675, allocations: 0.5418 MB / 0.6888 GB, free: 40 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.1675, allocations: 8.031 kB / 0.6888 GB, free: 32 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2554/0.423, allocations: 71.05 kB / 0.6888 GB, free: 18.6 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.4234, allocations: 258 kB / 0.6891 GB, free: 18.4 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.4234, allocations: 12.41 kB / 0.6891 GB, free: 18.4 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.4234, allocations: 20.69 kB / 0.6891 GB, free: 18.4 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005296/0.424, allocations: 313.1 kB / 0.6894 GB, free: 18.32 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.424, allocations: 1 kB / 0.6894 GB, free: 18.32 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.424, allocations: 17.45 kB / 0.6894 GB, free: 18.32 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.532e-05/0.4241, allocations: 18.33 kB / 0.6894 GB, free: 18.32 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003542/0.4244, allocations: 211.4 kB / 0.6896 GB, free: 18.32 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.4258, allocations: 1.494 MB / 0.6911 GB, free: 17.12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000378/0.4262, allocations: 205.9 kB / 0.6913 GB, free: 17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.352e-05/0.4263, allocations: 49.14 kB / 0.6913 GB, free: 16.99 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.4263, allocations: 1.297 kB / 0.6913 GB, free: 16.99 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.475e-05/0.4263, allocations: 42.72 kB / 0.6914 GB, free: 16.95 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.432e-06/0.4263, allocations: 0 / 0.6914 GB, free: 16.95 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005173/0.4268, allocations: 254.2 kB / 0.6916 GB, free: 16.81 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.097e-05/0.4269, allocations: 53.55 kB / 0.6917 GB, free: 16.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.4271, allocations: 204 kB / 0.6919 GB, free: 16.61 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.4271, allocations: 27.42 kB / 0.6919 GB, free: 16.58 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.64e-05/0.4272, allocations: 175.3 kB / 0.6921 GB, free: 16.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.4272, allocations: 38.05 kB / 0.6921 GB, free: 16.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.834e-05/0.4272, allocations: 37.34 kB / 0.6921 GB, free: 16.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.905e-05/0.4273, allocations: 333.4 kB / 0.6925 GB, free: 16.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.837e-05/0.4274, allocations: 43.34 kB / 0.6925 GB, free: 16.04 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.4275, allocations: 113.8 kB / 0.6926 GB, free: 15.95 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.4277, allocations: 163 kB / 0.6928 GB, free: 15.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4277, allocations: 1.969 kB / 0.6928 GB, free: 15.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003471/0.4281, allocations: 219 kB / 0.693 GB, free: 15.72 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.4281, allocations: 9.5 kB / 0.693 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.4281, allocations: 2.625 kB / 0.693 GB, free: 15.72 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.4283, allocations: 31.23 kB / 0.693 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.4284, allocations: 28.64 kB / 0.693 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007592/0.4292, allocations: 1.431 MB / 0.6944 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.4294, allocations: 19.67 kB / 0.6945 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.4294, allocations: 9.938 kB / 0.6945 GB, free: 14.27 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.0001021/0.4295, allocations: 153 kB / 0.6946 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.4295, allocations: 15.47 kB / 0.6946 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/0.4296, allocations: 19.89 kB / 0.6946 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.4296, allocations: 1.328 kB / 0.6946 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.4296, allocations: 0.9062 kB / 0.6947 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.4296, allocations: 5.438 kB / 0.6947 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005515/0.4302, allocations: 497.6 kB / 0.6951 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4302, allocations: 0 / 0.6951 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.548e-05/0.4302, allocations: 11.41 kB / 0.6951 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-05/0.4303, allocations: 24.92 kB / 0.6952 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.4303, allocations: 3.688 kB / 0.6952 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006396/0.431, allocations: 1.423 MB / 0.6966 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.431, allocations: 1.156 kB / 0.6966 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000251/0.4313, allocations: 240.9 kB / 0.6968 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.377e-05/0.4313, allocations: 99.28 kB / 0.6969 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.4314, allocations: 5.531 kB / 0.6969 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001259/0.4315, allocations: 6.688 kB / 0.6969 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.4315, allocations: 5.172 kB / 0.6969 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.4315, allocations: 6.406 kB / 0.6969 GB, free: 12.01 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000111/0.4317, allocations: 150.6 kB / 0.697 GB, free: 11.91 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4317, allocations: 4.828 kB / 0.6971 GB, free: 11.91 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000326/0.432, allocations: 55.38 kB / 0.6971 GB, free: 11.9 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.615e-05/0.4321, allocations: 101 kB / 0.6972 GB, free: 11.81 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003831/0.4325, allocations: 231.3 kB / 0.6974 GB, free: 11.67 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.4325, allocations: 0 / 0.6974 GB, free: 11.67 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.4327, allocations: 168.9 kB / 0.6976 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.433, allocations: 41.69 kB / 0.6976 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005891/0.4336, allocations: 383.9 kB / 0.698 GB, free: 11.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/0.4338, allocations: 0.7607 MB / 0.6987 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.485e-05/0.4339, allocations: 28.41 kB / 0.6988 GB, free: 10.58 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.359e-05/0.434, allocations: 14.83 kB / 0.6988 GB, free: 10.57 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.434, allocations: 0 / 0.6988 GB, free: 10.57 MB / 494.1 MB Notification: Performance of Templates: time 0.005362/0.4394, allocations: 1.936 MB / 0.7007 GB, free: 10.44 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)