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.00107/0.00107, allocations: 118.7 kB / 16.42 MB, free: 6.441 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.0009964/0.0009964, allocations: 183.9 kB / 17.35 MB, free: 5.738 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002084/0.002084, allocations: 289.2 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.079/1.079, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 91.86 kB / 0.6821 GB, free: 7.004 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4379/0.4398, allocations: 86.97 MB / 0.767 GB, free: 3.965 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006362/0.4462, allocations: 4.106 MB / 0.771 GB, free: 15.85 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003275/0.4495, allocations: 1.586 MB / 0.7726 GB, free: 14.25 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004115/0.4499, allocations: 8 kB / 0.7726 GB, free: 14.25 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001831/0.4518, allocations: 0.5856 MB / 0.7732 GB, free: 13.66 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0006314/0.4525, allocations: 238.8 kB / 0.7734 GB, free: 13.43 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006104/0.4531, allocations: 207.6 kB / 0.7736 GB, free: 13.22 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007548/0.4539, allocations: 0.5452 MB / 0.7741 GB, free: 12.68 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007701/0.4547, allocations: 473.8 kB / 0.7746 GB, free: 12.21 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003584/0.455, allocations: 231.3 kB / 0.7748 GB, free: 11.98 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005061/0.4555, allocations: 255 kB / 0.775 GB, free: 11.73 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.091e-05/0.4556, allocations: 32 kB / 0.7751 GB, free: 11.7 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003433/0.456, allocations: 167.7 kB / 0.7752 GB, free: 11.54 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001881/0.4562, allocations: 147.7 kB / 0.7754 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002337/0.4564, allocations: 199 kB / 0.7756 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006466/0.4571, allocations: 0.5243 MB / 0.7761 GB, free: 10.68 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4571, allocations: 3.938 kB / 0.7761 GB, free: 10.67 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4571, allocations: 0 / 0.7761 GB, free: 10.67 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.74e-05/0.4571, allocations: 0 / 0.7761 GB, free: 10.67 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001325/0.4585, allocations: 0.6865 MB / 0.7767 GB, free: 9.934 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.4585, allocations: 8.031 kB / 0.7768 GB, free: 9.926 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007709/0.4593, allocations: 104.4 kB / 0.7769 GB, free: 9.824 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004642/0.4598, allocations: 307.6 kB / 0.7771 GB, free: 9.484 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.756e-05/0.4598, allocations: 59.25 kB / 0.7772 GB, free: 9.422 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.645e-05/0.4599, allocations: 32.38 kB / 0.7772 GB, free: 9.391 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009114/0.4608, allocations: 0.5048 MB / 0.7777 GB, free: 8.867 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.4609, allocations: 0 / 0.7777 GB, free: 8.867 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.164e-05/0.4609, allocations: 12 kB / 0.7777 GB, free: 8.855 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-05/0.461, allocations: 36.98 kB / 0.7778 GB, free: 8.82 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007652/0.4617, allocations: 375.7 kB / 0.7781 GB, free: 8.449 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002739/0.4645, allocations: 2.196 MB / 0.7803 GB, free: 6.023 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007164/0.4652, allocations: 270.5 kB / 0.7805 GB, free: 5.75 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000376/0.4656, allocations: 148.8 kB / 0.7807 GB, free: 5.602 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.4657, allocations: 4 kB / 0.7807 GB, free: 5.598 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.4657, allocations: 38.5 kB / 0.7807 GB, free: 5.551 MB / 0.545 GB Notification: Performance of pre-optimization done (n=19): time 1.924e-06/0.4657, allocations: 0 / 0.7807 GB, free: 5.551 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001596/0.4673, allocations: 0.5771 MB / 0.7813 GB, free: 4.926 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.4674, allocations: 55.41 kB / 0.7813 GB, free: 4.859 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.4676, allocations: 225 kB / 0.7815 GB, free: 4.637 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.4676, allocations: 29.7 kB / 0.7816 GB, free: 4.602 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.4678, allocations: 207.6 kB / 0.7818 GB, free: 4.395 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.444e-05/0.4678, allocations: 71.09 kB / 0.7818 GB, free: 4.324 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.4679, allocations: 57.61 kB / 0.7819 GB, free: 4.262 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.4681, allocations: 330.8 kB / 0.7822 GB, free: 3.93 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.4683, allocations: 92.8 kB / 0.7823 GB, free: 3.836 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.4686, allocations: 192.8 kB / 0.7825 GB, free: 3.609 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004942/0.4691, allocations: 265.3 kB / 0.7827 GB, free: 3.316 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4691, allocations: 4 kB / 0.7827 GB, free: 3.312 MB / 0.545 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000938/0.4701, allocations: 380.7 kB / 0.7831 GB, free: 2.93 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.4701, allocations: 4 kB / 0.7831 GB, free: 2.926 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.4701, allocations: 8 kB / 0.7831 GB, free: 2.918 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005775/0.4707, allocations: 113.7 kB / 0.7832 GB, free: 2.801 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.4709, allocations: 47.97 kB / 0.7833 GB, free: 2.754 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003474/0.4744, allocations: 3.045 MB / 0.7862 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002702/0.4747, allocations: 31.73 kB / 0.7863 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.4747, allocations: 16.09 kB / 0.7863 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003337/0.4751, allocations: 218.5 kB / 0.7865 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002666/0.4754, allocations: 183.5 kB / 0.7867 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004798/0.4759, allocations: 259.7 kB / 0.7869 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.404e-06/0.4759, allocations: 0 / 0.7869 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008582/0.4767, allocations: 357.8 kB / 0.7873 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.4768, allocations: 7.938 kB / 0.7873 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.4768, allocations: 4 kB / 0.7873 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003339/0.4771, allocations: 85.09 kB / 0.7874 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.4773, allocations: 51.91 kB / 0.7874 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002082/0.4794, allocations: 1.625 MB / 0.789 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/0.4797, allocations: 27.83 kB / 0.789 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.4798, allocations: 12.06 kB / 0.789 GB, free: 12.34 MB / 0.5606 GB 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.0001437/0.4799, allocations: 200.1 kB / 0.7892 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.458e-05/0.48, allocations: 19.81 kB / 0.7892 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.528e-05/0.4801, allocations: 34.11 kB / 0.7893 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.4801, allocations: 0 / 0.7893 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4801, allocations: 3.938 kB / 0.7893 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.4803, allocations: 124.7 kB / 0.7894 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.4803, allocations: 4 kB / 0.7894 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.4805, allocations: 12 kB / 0.7894 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.245e-05/0.4806, allocations: 19.97 kB / 0.7894 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007808/0.4814, allocations: 364.9 kB / 0.7898 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007031/0.4821, allocations: 494.8 kB / 0.7902 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001945/0.4823, allocations: 91.92 kB / 0.7903 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001484/0.4824, allocations: 164.5 kB / 0.7905 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of Backend: time 4.1e-07/0.4824, allocations: 4 kB / 0.7905 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002336/0.4848, allocations: 0.8443 MB / 0.7913 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of SimCode: time 0.001206/0.486, allocations: 1.027 MB / 0.7923 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of Templates: time 0.0107/0.4967, allocations: 5.682 MB / 0.7979 GB, free: 3.188 MB / 0.5606 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)