Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.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.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005498/0.005498, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001276/0.001276, allocations: 191.9 kB / 16.67 MB, free: 5.949 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002036/0.002036, allocations: 292.3 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9141/0.9141, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 91.86 kB / 0.6814 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4358/0.4374, allocations: 86.98 MB / 0.7664 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.005094/0.4425, allocations: 3.838 MB / 0.7701 GB, free: 48 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002616/0.4452, allocations: 1.765 MB / 0.7718 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.4453, allocations: 11.94 kB / 0.7718 GB, free: 14.26 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.4465, allocations: 456.7 kB / 0.7723 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004756/0.447, allocations: 242.8 kB / 0.7725 GB, free: 13.58 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005295/0.4476, allocations: 255.5 kB / 0.7728 GB, free: 13.33 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005223/0.4481, allocations: 0.4984 MB / 0.7732 GB, free: 12.83 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005605/0.4487, allocations: 356.7 kB / 0.7736 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002114/0.4489, allocations: 191.4 kB / 0.7738 GB, free: 12.3 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003702/0.4493, allocations: 235.1 kB / 0.774 GB, free: 12.07 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.176e-05/0.4493, allocations: 32 kB / 0.774 GB, free: 12.04 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003114/0.4497, allocations: 183.6 kB / 0.7742 GB, free: 11.86 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.4498, allocations: 139.6 kB / 0.7743 GB, free: 11.72 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000168/0.45, allocations: 179.1 kB / 0.7745 GB, free: 11.54 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005964/0.4506, allocations: 496 kB / 0.775 GB, free: 11.06 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4506, allocations: 3.938 kB / 0.775 GB, free: 11.06 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4506, allocations: 3.938 kB / 0.775 GB, free: 11.05 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.13e-05/0.4506, allocations: 0 / 0.775 GB, free: 11.05 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001067/0.4517, allocations: 0.6661 MB / 0.7756 GB, free: 10.34 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.4517, allocations: 8.031 kB / 0.7756 GB, free: 10.33 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005313/0.4523, allocations: 88.64 kB / 0.7757 GB, free: 10.25 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/0.4526, allocations: 304.7 kB / 0.776 GB, free: 9.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.4527, allocations: 25.03 kB / 0.776 GB, free: 9.887 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.4527, allocations: 40.28 kB / 0.7761 GB, free: 9.848 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007735/0.4535, allocations: 486 kB / 0.7765 GB, free: 9.34 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.4535, allocations: 4 kB / 0.7765 GB, free: 9.336 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.4536, allocations: 16 kB / 0.7766 GB, free: 9.32 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.019e-05/0.4537, allocations: 44.56 kB / 0.7766 GB, free: 9.277 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000746/0.4545, allocations: 358.3 kB / 0.7769 GB, free: 8.93 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.4564, allocations: 2.045 MB / 0.7789 GB, free: 6.684 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005462/0.457, allocations: 218.7 kB / 0.7792 GB, free: 6.461 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003511/0.4573, allocations: 148.8 kB / 0.7793 GB, free: 6.312 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.4574, allocations: 7.906 kB / 0.7793 GB, free: 6.305 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.4574, allocations: 34.56 kB / 0.7793 GB, free: 6.262 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.4574, allocations: 0 / 0.7793 GB, free: 6.262 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.001124/0.4585, allocations: 421.7 kB / 0.7797 GB, free: 5.824 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.4586, allocations: 55.41 kB / 0.7798 GB, free: 5.758 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003314/0.4589, allocations: 262.7 kB / 0.78 GB, free: 5.492 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.459, allocations: 29.7 kB / 0.7801 GB, free: 5.457 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.4591, allocations: 216.2 kB / 0.7803 GB, free: 5.242 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.994e-05/0.4592, allocations: 71.41 kB / 0.7803 GB, free: 5.172 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.4593, allocations: 53.94 kB / 0.7804 GB, free: 5.109 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.4594, allocations: 342.8 kB / 0.7807 GB, free: 4.766 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/0.4597, allocations: 97.91 kB / 0.7808 GB, free: 4.668 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002952/0.46, allocations: 203.5 kB / 0.781 GB, free: 4.418 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005243/0.4605, allocations: 313.5 kB / 0.7813 GB, free: 4.062 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4605, allocations: 0 / 0.7813 GB, free: 4.062 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007213/0.4612, allocations: 360.9 kB / 0.7816 GB, free: 3.703 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.4613, allocations: 8 kB / 0.7817 GB, free: 3.695 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.4613, allocations: 4.469 kB / 0.7817 GB, free: 3.691 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001912/0.4615, allocations: 32.84 kB / 0.7817 GB, free: 3.656 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.4618, allocations: 67.89 kB / 0.7818 GB, free: 3.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/0.4633, allocations: 1.437 MB / 0.7832 GB, free: 2.016 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.4636, allocations: 51.8 kB / 0.7832 GB, free: 1.965 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.4636, allocations: 11.94 kB / 0.7832 GB, free: 1.953 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003267/0.4639, allocations: 223 kB / 0.7834 GB, free: 1.734 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003022/0.4643, allocations: 216.3 kB / 0.7836 GB, free: 1.469 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000519/0.4648, allocations: 317 kB / 0.7839 GB, free: 1.105 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.206e-06/0.4648, allocations: 4 kB / 0.7839 GB, free: 1.102 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006417/0.4654, allocations: 337.1 kB / 0.7843 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.4655, allocations: 8 kB / 0.7843 GB, free: 0.7578 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.4655, allocations: 4 kB / 0.7843 GB, free: 0.7539 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.26e-06/0.4655, allocations: 4 kB / 0.7843 GB, free: 0.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002613/0.4657, allocations: 71.89 kB / 0.7844 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.639e-06/0.4658, allocations: 19.92 kB / 0.7844 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.466, allocations: 36.16 kB / 0.7844 GB, free: 0.625 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.466, allocations: 12 kB / 0.7844 GB, free: 0.6133 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 31 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.4661, allocations: 204.1 kB / 0.7846 GB, free: 416 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.842e-05/0.4662, allocations: 23.86 kB / 0.7846 GB, free: 392 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.978e-05/0.4663, allocations: 34.17 kB / 0.7847 GB, free: 356 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.4663, allocations: 0 / 0.7847 GB, free: 356 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.4663, allocations: 0 / 0.7847 GB, free: 356 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.4663, allocations: 3.984 kB / 0.7847 GB, free: 352 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.4674, allocations: 0.7537 MB / 0.7854 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.4675, allocations: 3.984 kB / 0.7854 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.4676, allocations: 44.03 kB / 0.7855 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.651e-05/0.4677, allocations: 24.84 kB / 0.7855 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.4678, allocations: 4 kB / 0.7855 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009832/0.4688, allocations: 1.418 MB / 0.7869 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4688, allocations: 3.984 kB / 0.7869 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006001/0.4694, allocations: 369.8 kB / 0.7872 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.4695, allocations: 116.9 kB / 0.7873 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/0.4695, allocations: 0 / 0.7873 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.4697, allocations: 23.98 kB / 0.7874 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.4698, allocations: 11.98 kB / 0.7874 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.4698, allocations: 7.938 kB / 0.7874 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001677/0.47, allocations: 189.9 kB / 0.7876 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.47, allocations: 3.938 kB / 0.7876 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000543/0.4705, allocations: 147.6 kB / 0.7877 GB, free: 12.98 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001984/0.4707, allocations: 111.8 kB / 0.7878 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001051/0.4718, allocations: 494.4 kB / 0.7883 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4718, allocations: 0 / 0.7883 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.4722, allocations: 222.5 kB / 0.7885 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/0.4726, allocations: 79.72 kB / 0.7886 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000837/0.4735, allocations: 0.5443 MB / 0.7891 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.474, allocations: 0.8035 MB / 0.7899 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002187/0.4742, allocations: 70.22 kB / 0.79 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.889e-05/0.4742, allocations: 23.44 kB / 0.79 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.4743, allocations: 0 / 0.79 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of Templates: time 0.006953/0.4812, allocations: 3.586 MB / 0.7935 GB, free: 7.023 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)