Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.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.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 107.8 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.001527/0.001527, allocations: 189.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.354/1.354, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002167/0.002167, allocations: 301.5 kB / 291.3 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.9472/0.9472, allocations: 169.3 MB / 0.4988 GB, free: 4.492 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 98.78 kB / 0.5959 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1773, allocations: 86.97 MB / 0.6808 GB, free: 8.152 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006145/0.1835, allocations: 4.081 MB / 0.6848 GB, free: 4.047 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002729/0.1863, allocations: 1.593 MB / 0.6864 GB, free: 2.445 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.1866, allocations: 11.94 kB / 0.6864 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001672/0.1883, allocations: 0.5798 MB / 0.687 GB, free: 1.852 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000658/0.189, allocations: 238.8 kB / 0.6872 GB, free: 1.617 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005753/0.1896, allocations: 218.8 kB / 0.6874 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006837/0.1903, allocations: 0.5413 MB / 0.6879 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007536/0.191, allocations: 481.8 kB / 0.6884 GB, free: 400 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003481/0.1914, allocations: 227.3 kB / 0.6886 GB, free: 172 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3168/0.5082, allocations: 247.8 kB / 0.6888 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.5085, allocations: 34.62 kB / 0.6889 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005427/0.509, allocations: 166.2 kB / 0.689 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002086/0.5092, allocations: 144 kB / 0.6892 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002605/0.5095, allocations: 198.3 kB / 0.6894 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007998/0.5103, allocations: 0.5202 MB / 0.6899 GB, free: 12.55 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.5103, allocations: 0.8125 kB / 0.6899 GB, free: 12.55 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.5103, allocations: 0 / 0.6899 GB, free: 12.55 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.5103, allocations: 0.7812 kB / 0.6899 GB, free: 12.55 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001225/0.5116, allocations: 0.6766 MB / 0.6905 GB, free: 12.1 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.5116, allocations: 12 kB / 0.6905 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007843/0.5124, allocations: 106.2 kB / 0.6906 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003887/0.5128, allocations: 293.9 kB / 0.6909 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.308e-05/0.5129, allocations: 58.55 kB / 0.691 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.678e-05/0.513, allocations: 36.34 kB / 0.691 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000938/0.5139, allocations: 0.5013 MB / 0.6915 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.5139, allocations: 0 / 0.6915 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.192e-05/0.514, allocations: 17.75 kB / 0.6915 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.685e-05/0.5141, allocations: 32.62 kB / 0.6915 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000761/0.5148, allocations: 379 kB / 0.6919 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00229/0.5171, allocations: 2.218 MB / 0.6941 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007276/0.5179, allocations: 258.4 kB / 0.6943 GB, free: 10.13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.5183, allocations: 151.4 kB / 0.6945 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.5183, allocations: 7.781 kB / 0.6945 GB, free: 10.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/0.5183, allocations: 35.81 kB / 0.6945 GB, free: 10.08 MB / 494.1 MB Notification: Performance of pre-optimization done (n=19): time 1.683e-06/0.5183, allocations: 0 / 0.6945 GB, free: 10.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.00153/0.5199, allocations: 0.5639 MB / 0.6951 GB, free: 9.824 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.5199, allocations: 53.75 kB / 0.6951 GB, free: 9.762 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002608/0.5202, allocations: 230.3 kB / 0.6953 GB, free: 9.656 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.5202, allocations: 31.36 kB / 0.6954 GB, free: 9.625 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.5203, allocations: 209.8 kB / 0.6956 GB, free: 9.477 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.525e-05/0.5204, allocations: 69.44 kB / 0.6956 GB, free: 9.438 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.649e-05/0.5205, allocations: 56.56 kB / 0.6957 GB, free: 9.418 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.071e-05/0.5206, allocations: 328.8 kB / 0.696 GB, free: 9.105 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002292/0.5208, allocations: 97.47 kB / 0.6961 GB, free: 9.098 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000274/0.5211, allocations: 184.2 kB / 0.6963 GB, free: 8.992 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004702/0.5215, allocations: 272.1 kB / 0.6965 GB, free: 8.898 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.5216, allocations: 1.062 kB / 0.6965 GB, free: 8.898 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008848/0.5225, allocations: 386.2 kB / 0.6969 GB, free: 8.828 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.5225, allocations: 6.188 kB / 0.6969 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.5225, allocations: 2.344 kB / 0.6969 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005483/0.523, allocations: 107.5 kB / 0.697 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002186/0.5233, allocations: 57.64 kB / 0.6971 GB, free: 8.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/0.5261, allocations: 3.039 MB / 0.7 GB, free: 6.094 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.5264, allocations: 31.88 kB / 0.7001 GB, free: 6.082 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.5264, allocations: 12.5 kB / 0.7001 GB, free: 6.082 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003713/0.5268, allocations: 220.6 kB / 0.7003 GB, free: 5.953 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002746/0.5271, allocations: 183.3 kB / 0.7004 GB, free: 5.812 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004789/0.5276, allocations: 278.1 kB / 0.7007 GB, free: 5.652 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.384e-06/0.5276, allocations: 1.094 kB / 0.7007 GB, free: 5.652 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008484/0.5284, allocations: 350.8 kB / 0.701 GB, free: 5.523 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.5285, allocations: 10.53 kB / 0.7011 GB, free: 5.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.5285, allocations: 3.266 kB / 0.7011 GB, free: 5.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003101/0.5288, allocations: 78.75 kB / 0.7011 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.529, allocations: 57.52 kB / 0.7012 GB, free: 5.496 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/0.5308, allocations: 1.614 MB / 0.7028 GB, free: 4.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.5311, allocations: 27.59 kB / 0.7028 GB, free: 4.027 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.5311, allocations: 12.88 kB / 0.7028 GB, free: 4.023 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.5312, allocations: 197.2 kB / 0.703 GB, free: 3.832 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.5313, allocations: 22.44 kB / 0.703 GB, free: 3.82 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.298e-05/0.5314, allocations: 31.38 kB / 0.703 GB, free: 3.797 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.5314, allocations: 2.906 kB / 0.703 GB, free: 3.797 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5314, allocations: 0.5156 kB / 0.703 GB, free: 3.797 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.5314, allocations: 4.734 kB / 0.7031 GB, free: 3.793 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.5328, allocations: 0.8385 MB / 0.7039 GB, free: 3.242 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.5328, allocations: 0.7031 kB / 0.7039 GB, free: 3.242 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.533, allocations: 32.38 kB / 0.7039 GB, free: 3.238 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003892/0.5334, allocations: 111.5 kB / 0.704 GB, free: 3.199 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.5334, allocations: 3.375 kB / 0.704 GB, free: 3.199 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002305/0.5357, allocations: 3.017 MB / 0.707 GB, free: 340 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5357, allocations: 0.9375 kB / 0.707 GB, free: 340 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007686/0.5365, allocations: 410 kB / 0.7074 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.5366, allocations: 124.8 kB / 0.7075 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.5367, allocations: 5.406 kB / 0.7075 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.5369, allocations: 8.391 kB / 0.7075 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.413e-05/0.537, allocations: 26.33 kB / 0.7075 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.537, allocations: 9.062 kB / 0.7075 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001658/0.5372, allocations: 163.7 kB / 0.7077 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5372, allocations: 0 / 0.7077 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007203/0.5379, allocations: 169 kB / 0.7078 GB, free: 15.81 MB / 0.4981 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001229/0.538, allocations: 105.7 kB / 0.7079 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002034/0.5401, allocations: 0.7744 MB / 0.7087 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/0.5401, allocations: 0 / 0.7087 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008052/0.5409, allocations: 376.2 kB / 0.7091 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.5414, allocations: 57.95 kB / 0.7091 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.5427, allocations: 0.6371 MB / 0.7097 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.5432, allocations: 0.8099 MB / 0.7105 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.407e-05/0.5433, allocations: 21.06 kB / 0.7105 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of SimCode: time 7.32e-07/0.5433, allocations: 0 / 0.7105 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of Templates: time 0.01251/0.5558, allocations: 6.162 MB / 0.7166 GB, free: 13.44 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)