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.001422/0.001422, allocations: 107.4 kB / 16.41 MB, free: 6.438 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.001573/0.001573, allocations: 189.6 kB / 17.34 MB, free: 5.742 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.368/1.368, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002143/0.002143, allocations: 286.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9689/0.9689, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00218/0.00218, allocations: 95.84 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5103/0.5125, allocations: 86.97 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.VariableLoad): time 0.006365/0.5189, allocations: 3.846 MB / 0.7708 GB, free: 60 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003548/0.5225, allocations: 1.769 MB / 0.7725 GB, free: 14.28 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004095/0.5229, allocations: 11.94 kB / 0.7725 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.5246, allocations: 456.3 kB / 0.773 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0007705/0.5253, allocations: 242.8 kB / 0.7732 GB, free: 13.59 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007908/0.5261, allocations: 251.5 kB / 0.7734 GB, free: 13.34 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000925/0.5271, allocations: 0.4906 MB / 0.7739 GB, free: 12.85 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007775/0.5279, allocations: 364.9 kB / 0.7743 GB, free: 12.49 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004539/0.5283, allocations: 191.4 kB / 0.7744 GB, free: 12.3 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006534/0.529, allocations: 235.1 kB / 0.7747 GB, free: 12.07 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.5291, allocations: 35.98 kB / 0.7747 GB, free: 12.04 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005067/0.5296, allocations: 187.6 kB / 0.7749 GB, free: 11.86 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002191/0.5299, allocations: 131.7 kB / 0.775 GB, free: 11.73 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003007/0.5302, allocations: 183.1 kB / 0.7752 GB, free: 11.55 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009144/0.5311, allocations: 496.9 kB / 0.7756 GB, free: 11.06 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.5311, allocations: 0 / 0.7756 GB, free: 11.06 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.063e-06/0.5311, allocations: 0 / 0.7756 GB, free: 11.06 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.882e-05/0.5311, allocations: 4 kB / 0.7757 GB, free: 11.06 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.001609/0.5328, allocations: 0.6548 MB / 0.7763 GB, free: 10.36 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.5328, allocations: 12.03 kB / 0.7763 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006888/0.5335, allocations: 84.41 kB / 0.7764 GB, free: 10.26 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005474/0.5341, allocations: 312.5 kB / 0.7767 GB, free: 9.918 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.5341, allocations: 25.03 kB / 0.7767 GB, free: 9.895 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.914e-05/0.5342, allocations: 28.3 kB / 0.7767 GB, free: 9.867 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009498/0.5351, allocations: 490 kB / 0.7772 GB, free: 9.355 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.5352, allocations: 4 kB / 0.7772 GB, free: 9.352 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.5352, allocations: 12 kB / 0.7772 GB, free: 9.34 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.806e-05/0.5353, allocations: 36.64 kB / 0.7772 GB, free: 9.305 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008524/0.5361, allocations: 366.2 kB / 0.7776 GB, free: 8.949 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002663/0.5388, allocations: 2.037 MB / 0.7796 GB, free: 6.711 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006159/0.5395, allocations: 214.7 kB / 0.7798 GB, free: 6.492 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004187/0.5399, allocations: 160.8 kB / 0.7799 GB, free: 6.332 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.5399, allocations: 0 / 0.7799 GB, free: 6.332 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.54, allocations: 34.56 kB / 0.78 GB, free: 6.289 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.363e-06/0.54, allocations: 0 / 0.78 GB, free: 6.289 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.001267/0.5412, allocations: 425.3 kB / 0.7804 GB, free: 5.848 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.5413, allocations: 55.41 kB / 0.7804 GB, free: 5.781 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003475/0.5417, allocations: 262.6 kB / 0.7807 GB, free: 5.516 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.006e-05/0.5417, allocations: 29.7 kB / 0.7807 GB, free: 5.48 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.5419, allocations: 211.7 kB / 0.7809 GB, free: 5.27 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.5419, allocations: 63.11 kB / 0.781 GB, free: 5.207 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.5421, allocations: 61.88 kB / 0.781 GB, free: 5.137 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001671/0.5422, allocations: 334.8 kB / 0.7814 GB, free: 4.801 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.5425, allocations: 101.9 kB / 0.7815 GB, free: 4.699 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003384/0.5429, allocations: 199.6 kB / 0.7816 GB, free: 4.453 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006144/0.5435, allocations: 312.5 kB / 0.7819 GB, free: 4.102 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.5435, allocations: 0 / 0.7819 GB, free: 4.102 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008463/0.5444, allocations: 353.7 kB / 0.7823 GB, free: 3.746 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.5444, allocations: 4 kB / 0.7823 GB, free: 3.742 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.5444, allocations: 8.406 kB / 0.7823 GB, free: 3.734 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002659/0.5447, allocations: 40.83 kB / 0.7823 GB, free: 3.691 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.545, allocations: 67.89 kB / 0.7824 GB, free: 3.625 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.5465, allocations: 1.437 MB / 0.7838 GB, free: 2.051 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.5468, allocations: 47.78 kB / 0.7838 GB, free: 2.004 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.5469, allocations: 15.94 kB / 0.7839 GB, free: 1.988 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003747/0.5473, allocations: 219.9 kB / 0.7841 GB, free: 1.773 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003221/0.5476, allocations: 217.5 kB / 0.7843 GB, free: 1.504 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000563/0.5482, allocations: 326.4 kB / 0.7846 GB, free: 1.133 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.086e-06/0.5482, allocations: 0 / 0.7846 GB, free: 1.133 MB / 0.545 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007388/0.5489, allocations: 341 kB / 0.7849 GB, free: 0.793 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.5489, allocations: 4 kB / 0.7849 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.549, allocations: 4 kB / 0.7849 GB, free: 0.7852 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.975e-06/0.549, allocations: 8 kB / 0.7849 GB, free: 0.7773 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/0.5492, allocations: 67.89 kB / 0.785 GB, free: 0.7109 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.5493, allocations: 11.98 kB / 0.785 GB, free: 0.6992 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002551/0.5495, allocations: 32.14 kB / 0.785 GB, free: 0.668 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/0.5496, allocations: 16 kB / 0.785 GB, free: 0.6523 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.0001401/0.5497, allocations: 200.1 kB / 0.7852 GB, free: 460 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.636e-05/0.5498, allocations: 27.72 kB / 0.7853 GB, free: 432 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.598e-05/0.5499, allocations: 30.17 kB / 0.7853 GB, free: 400 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.5499, allocations: 4 kB / 0.7853 GB, free: 396 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.5499, allocations: 4 kB / 0.7853 GB, free: 392 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.5499, allocations: 0 / 0.7853 GB, free: 392 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.5512, allocations: 0.7501 MB / 0.786 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.5512, allocations: 0 / 0.786 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/0.5514, allocations: 47.97 kB / 0.7861 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001347/0.5515, allocations: 24.84 kB / 0.7861 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.5516, allocations: 7.984 kB / 0.7861 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/0.5527, allocations: 1.418 MB / 0.7875 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5528, allocations: 0 / 0.7875 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006623/0.5534, allocations: 372.9 kB / 0.7879 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.5535, allocations: 116.8 kB / 0.788 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.5536, allocations: 4 kB / 0.788 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.5538, allocations: 23.91 kB / 0.788 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.5539, allocations: 15.98 kB / 0.788 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.5539, allocations: 4 kB / 0.788 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000177/0.5541, allocations: 193.9 kB / 0.7882 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.3e-07/0.5541, allocations: 0 / 0.7882 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006295/0.5547, allocations: 143.5 kB / 0.7883 GB, free: 13.02 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.0001255/0.5548, allocations: 106.3 kB / 0.7884 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001133/0.556, allocations: 499.3 kB / 0.7889 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.556, allocations: 0 / 0.7889 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000368/0.5564, allocations: 214.6 kB / 0.7891 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005506/0.5569, allocations: 77.33 kB / 0.7892 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.558, allocations: 0.5934 MB / 0.7898 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004386/0.5585, allocations: 0.8035 MB / 0.7906 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.5586, allocations: 23.44 kB / 0.7906 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of SimCode: time 3.91e-07/0.5586, allocations: 0 / 0.7906 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of Templates: time 0.008192/0.5668, allocations: 4.797 MB / 0.7953 GB, free: 5.855 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)