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.001266/0.001266, allocations: 104.9 kB / 16.4 MB, free: 5.977 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.001328/0.001328, allocations: 188.8 kB / 17.34 MB, free: 5.586 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002527/0.002527, allocations: 281.7 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9618/0.9618, allocations: 169.3 MB / 0.499 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 95.86 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5197/0.5218, allocations: 86.97 MB / 0.767 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.006318/0.5281, allocations: 3.85 MB / 0.7708 GB, free: 68 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003411/0.5316, allocations: 1.765 MB / 0.7725 GB, free: 14.29 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003464/0.532, allocations: 7.938 kB / 0.7725 GB, free: 14.29 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001621/0.5336, allocations: 450.1 kB / 0.7729 GB, free: 13.84 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0007242/0.5343, allocations: 246.8 kB / 0.7732 GB, free: 13.6 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007266/0.5351, allocations: 253.5 kB / 0.7734 GB, free: 13.36 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008926/0.536, allocations: 0.5023 MB / 0.7739 GB, free: 12.85 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006645/0.5366, allocations: 360.9 kB / 0.7743 GB, free: 12.5 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003534/0.537, allocations: 187.4 kB / 0.7744 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005327/0.5375, allocations: 239.1 kB / 0.7747 GB, free: 12.08 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.809e-05/0.5376, allocations: 32 kB / 0.7747 GB, free: 12.05 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000486/0.5381, allocations: 183.6 kB / 0.7749 GB, free: 11.87 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.5383, allocations: 135.6 kB / 0.775 GB, free: 11.74 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002264/0.5386, allocations: 175.1 kB / 0.7752 GB, free: 11.57 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0007663/0.5393, allocations: 497 kB / 0.7756 GB, free: 11.08 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.5394, allocations: 4 kB / 0.7756 GB, free: 11.08 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.783e-06/0.5394, allocations: 7.938 kB / 0.7757 GB, free: 11.07 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.787e-05/0.5394, allocations: 0 / 0.7757 GB, free: 11.07 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.001571/0.541, allocations: 0.651 MB / 0.7763 GB, free: 10.37 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.541, allocations: 8.031 kB / 0.7763 GB, free: 10.36 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006622/0.5417, allocations: 88.41 kB / 0.7764 GB, free: 10.28 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004879/0.5422, allocations: 308.5 kB / 0.7767 GB, free: 9.938 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.5422, allocations: 24.97 kB / 0.7767 GB, free: 9.914 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.403e-05/0.5423, allocations: 24.38 kB / 0.7767 GB, free: 9.891 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/0.5434, allocations: 497.9 kB / 0.7772 GB, free: 9.371 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.5435, allocations: 0 / 0.7772 GB, free: 9.371 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.5435, allocations: 12 kB / 0.7772 GB, free: 9.359 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.761e-05/0.5436, allocations: 44.56 kB / 0.7773 GB, free: 9.316 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007949/0.5444, allocations: 366.3 kB / 0.7776 GB, free: 8.961 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002395/0.5468, allocations: 2.037 MB / 0.7796 GB, free: 6.723 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005841/0.5474, allocations: 210.7 kB / 0.7798 GB, free: 6.508 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004101/0.5478, allocations: 160.8 kB / 0.7799 GB, free: 6.348 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.5478, allocations: 0 / 0.7799 GB, free: 6.348 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.5479, allocations: 38.5 kB / 0.78 GB, free: 6.301 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.252e-06/0.5479, allocations: 0 / 0.78 GB, free: 6.301 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.001204/0.5491, allocations: 425.3 kB / 0.7804 GB, free: 5.859 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.5491, allocations: 55.41 kB / 0.7804 GB, free: 5.793 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.5494, allocations: 258.7 kB / 0.7807 GB, free: 5.531 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.5495, allocations: 29.7 kB / 0.7807 GB, free: 5.496 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.5497, allocations: 211.7 kB / 0.7809 GB, free: 5.285 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.448e-05/0.5497, allocations: 67.09 kB / 0.781 GB, free: 5.219 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.5499, allocations: 57.89 kB / 0.781 GB, free: 5.152 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000263/0.5501, allocations: 338.8 kB / 0.7814 GB, free: 4.812 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.5504, allocations: 93.92 kB / 0.7814 GB, free: 4.719 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003207/0.5507, allocations: 203.6 kB / 0.7816 GB, free: 4.469 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005702/0.5513, allocations: 312.8 kB / 0.7819 GB, free: 4.117 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.5513, allocations: 0 / 0.7819 GB, free: 4.117 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000791/0.5521, allocations: 361.9 kB / 0.7823 GB, free: 3.754 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.5521, allocations: 4 kB / 0.7823 GB, free: 3.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.5522, allocations: 4 kB / 0.7823 GB, free: 3.746 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002187/0.5524, allocations: 33.03 kB / 0.7823 GB, free: 3.711 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002675/0.5527, allocations: 67.89 kB / 0.7824 GB, free: 3.645 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/0.5542, allocations: 1.449 MB / 0.7838 GB, free: 2.059 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.5544, allocations: 43.61 kB / 0.7838 GB, free: 2.016 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.5545, allocations: 11.94 kB / 0.7839 GB, free: 2.004 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000347/0.5548, allocations: 223.1 kB / 0.7841 GB, free: 1.785 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003816/0.5552, allocations: 217.6 kB / 0.7843 GB, free: 1.516 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005616/0.5558, allocations: 321.8 kB / 0.7846 GB, free: 1.148 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.006e-06/0.5558, allocations: 0 / 0.7846 GB, free: 1.148 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007055/0.5565, allocations: 337.3 kB / 0.7849 GB, free: 0.8125 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.5565, allocations: 7.984 kB / 0.7849 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.5566, allocations: 11.97 kB / 0.7849 GB, free: 0.793 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.402e-06/0.5566, allocations: 8 kB / 0.7849 GB, free: 0.7852 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.5568, allocations: 63.91 kB / 0.785 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.5569, allocations: 15.92 kB / 0.785 GB, free: 0.707 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.5571, allocations: 27.83 kB / 0.785 GB, free: 0.6797 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.5571, allocations: 16 kB / 0.785 GB, free: 0.6641 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.0001508/0.5573, allocations: 204.1 kB / 0.7852 GB, free: 468 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.888e-05/0.5574, allocations: 23.72 kB / 0.7853 GB, free: 444 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.115e-05/0.5574, allocations: 30.17 kB / 0.7853 GB, free: 412 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.5575, allocations: 4 kB / 0.7853 GB, free: 408 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.5575, allocations: 0 / 0.7853 GB, free: 408 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.5575, allocations: 3.984 kB / 0.7853 GB, free: 404 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.5589, allocations: 0.7498 MB / 0.786 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.5589, allocations: 4 kB / 0.786 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.5591, allocations: 35.97 kB / 0.7861 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001106/0.5592, allocations: 32.89 kB / 0.7861 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.5593, allocations: 4 kB / 0.7861 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001286/0.5605, allocations: 1.422 MB / 0.7875 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5606, allocations: 0 / 0.7875 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006635/0.5612, allocations: 371.2 kB / 0.7879 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.5614, allocations: 124.7 kB / 0.788 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.5614, allocations: 4 kB / 0.788 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.5616, allocations: 11.98 kB / 0.788 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.273e-05/0.5617, allocations: 19.98 kB / 0.788 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.5617, allocations: 7.938 kB / 0.788 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002537/0.562, allocations: 190 kB / 0.7882 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.844e-06/0.562, allocations: 0 / 0.7882 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006797/0.5627, allocations: 143.5 kB / 0.7883 GB, free: 13.04 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.0001369/0.5628, allocations: 104.5 kB / 0.7884 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001121/0.5639, allocations: 495.9 kB / 0.7889 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5639, allocations: 4.062 kB / 0.7889 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003747/0.5643, allocations: 218.6 kB / 0.7891 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005348/0.5649, allocations: 68.41 kB / 0.7892 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.5661, allocations: 0.5936 MB / 0.7898 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005175/0.5666, allocations: 0.8035 MB / 0.7905 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.748e-05/0.5667, allocations: 23.44 kB / 0.7906 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.5667, allocations: 0 / 0.7906 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of Templates: time 0.00873/0.5754, allocations: 4.787 MB / 0.7952 GB, free: 5.883 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)