Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 110.2 kB / 16.41 MB, free: 6.516 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.001648/0.001648, allocations: 185.2 kB / 17.34 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.416/1.416, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002586/0.002586, allocations: 291.3 kB / 291.5 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 1.003/1.003, allocations: 169.2 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002767/0.002767, allocations: 99.83 kB / 0.6821 GB, free: 6.949 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4285/0.4313, allocations: 86.98 MB / 0.767 GB, free: 4.039 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004863/0.4362, allocations: 3.078 MB / 0.7701 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002986/0.4391, allocations: 1.718 MB / 0.7717 GB, free: 15.22 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.4393, allocations: 4 kB / 0.7717 GB, free: 15.22 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.4404, allocations: 342.7 kB / 0.7721 GB, free: 14.88 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.000532/0.441, allocations: 211.1 kB / 0.7723 GB, free: 14.68 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004826/0.4414, allocations: 179.5 kB / 0.7724 GB, free: 14.5 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.4419, allocations: 319 kB / 0.7727 GB, free: 14.19 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003519/0.4422, allocations: 192.6 kB / 0.7729 GB, free: 14 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.4424, allocations: 135.6 kB / 0.7731 GB, free: 13.87 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003171/0.4427, allocations: 159.5 kB / 0.7732 GB, free: 13.71 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.818e-05/0.4428, allocations: 24 kB / 0.7732 GB, free: 13.69 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.4432, allocations: 243.5 kB / 0.7735 GB, free: 13.45 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.4433, allocations: 107.7 kB / 0.7736 GB, free: 13.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.4435, allocations: 123.4 kB / 0.7737 GB, free: 13.22 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.000563/0.444, allocations: 424.7 kB / 0.7741 GB, free: 12.81 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.444, allocations: 4 kB / 0.7741 GB, free: 12.8 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.082e-06/0.444, allocations: 0 / 0.7741 GB, free: 12.8 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.444, allocations: 0 / 0.7741 GB, free: 12.8 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009885/0.445, allocations: 0.557 MB / 0.7746 GB, free: 12.2 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.445, allocations: 8.031 kB / 0.7746 GB, free: 12.19 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007722/0.4458, allocations: 100.7 kB / 0.7747 GB, free: 12.09 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004041/0.4462, allocations: 260 kB / 0.775 GB, free: 11.8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.4463, allocations: 16.81 kB / 0.775 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.4464, allocations: 32.5 kB / 0.775 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/0.447, allocations: 369.2 kB / 0.7754 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.447, allocations: 3.938 kB / 0.7754 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.447, allocations: 8 kB / 0.7754 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001266/0.4472, allocations: 36.39 kB / 0.7754 GB, free: 11.32 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005137/0.4477, allocations: 313.5 kB / 0.7757 GB, free: 11.02 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.4497, allocations: 1.514 MB / 0.7772 GB, free: 9.352 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004525/0.4501, allocations: 210.4 kB / 0.7774 GB, free: 9.137 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.4503, allocations: 108.8 kB / 0.7775 GB, free: 9.027 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000151/0.4504, allocations: 85.09 kB / 0.7776 GB, free: 8.926 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.4505, allocations: 38.56 kB / 0.7776 GB, free: 8.879 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.623e-06/0.4505, allocations: 0 / 0.7776 GB, free: 8.879 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001394/0.4519, allocations: 0.7952 MB / 0.7784 GB, free: 8.035 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.4519, allocations: 63.33 kB / 0.7785 GB, free: 7.961 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.4521, allocations: 187.7 kB / 0.7786 GB, free: 7.77 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.4521, allocations: 33.7 kB / 0.7787 GB, free: 7.73 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.4523, allocations: 160.2 kB / 0.7788 GB, free: 7.57 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.238e-05/0.4523, allocations: 75.42 kB / 0.7789 GB, free: 7.496 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.4524, allocations: 57.64 kB / 0.779 GB, free: 7.434 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4526, allocations: 330.8 kB / 0.7793 GB, free: 7.102 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.4528, allocations: 115.9 kB / 0.7794 GB, free: 6.988 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.453, allocations: 175 kB / 0.7796 GB, free: 6.797 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000428/0.4534, allocations: 296.2 kB / 0.7798 GB, free: 6.488 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4534, allocations: 0 / 0.7798 GB, free: 6.488 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007964/0.4542, allocations: 421.2 kB / 0.7802 GB, free: 6.07 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.4542, allocations: 4 kB / 0.7802 GB, free: 6.066 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.4542, allocations: 0 / 0.7802 GB, free: 6.066 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004317/0.4547, allocations: 108.9 kB / 0.7803 GB, free: 5.957 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002774/0.455, allocations: 47.95 kB / 0.7804 GB, free: 5.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.4571, allocations: 1.879 MB / 0.7822 GB, free: 3.887 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.4573, allocations: 15.92 kB / 0.7822 GB, free: 3.871 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.4574, allocations: 12 kB / 0.7823 GB, free: 3.859 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001876/0.4576, allocations: 157.8 kB / 0.7824 GB, free: 3.695 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.333e-05/0.4576, allocations: 23.8 kB / 0.7824 GB, free: 3.672 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005306/0.4581, allocations: 303.2 kB / 0.7827 GB, free: 3.371 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.4581, allocations: 4 kB / 0.7827 GB, free: 3.367 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-06/0.4581, allocations: 0 / 0.7827 GB, free: 3.367 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.4582, allocations: 3.938 kB / 0.7827 GB, free: 3.363 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.4592, allocations: 0.7061 MB / 0.7834 GB, free: 2.598 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4592, allocations: 0 / 0.7834 GB, free: 2.598 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.4595, allocations: 55.89 kB / 0.7835 GB, free: 2.543 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.4595, allocations: 4 kB / 0.7835 GB, free: 2.539 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.4595, allocations: 7.938 kB / 0.7835 GB, free: 2.531 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.4595, allocations: 7.984 kB / 0.7835 GB, free: 2.523 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4595, allocations: 0 / 0.7835 GB, free: 2.523 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006779/0.4602, allocations: 0.5163 MB / 0.784 GB, free: 1.988 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.4603, allocations: 128.8 kB / 0.7841 GB, free: 1.844 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.4604, allocations: 0 / 0.7841 GB, free: 1.844 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.4606, allocations: 20.05 kB / 0.7841 GB, free: 1.824 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.247e-05/0.4606, allocations: 7.984 kB / 0.7841 GB, free: 1.816 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.4606, allocations: 12.06 kB / 0.7841 GB, free: 1.805 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001439/0.4608, allocations: 144.1 kB / 0.7843 GB, free: 1.66 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.4608, allocations: 0 / 0.7843 GB, free: 1.66 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003811/0.4611, allocations: 68 kB / 0.7843 GB, free: 1.594 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001616/0.4613, allocations: 103.2 kB / 0.7844 GB, free: 1.48 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007624/0.4621, allocations: 410.5 kB / 0.7848 GB, free: 1.066 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4621, allocations: 0 / 0.7848 GB, free: 1.066 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.4622, allocations: 119.8 kB / 0.785 GB, free: 0.9492 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.4627, allocations: 35.66 kB / 0.785 GB, free: 0.9141 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.4639, allocations: 0.6346 MB / 0.7856 GB, free: 252 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.4643, allocations: 0.7752 MB / 0.7864 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000172/0.4645, allocations: 53.92 kB / 0.7864 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.982e-05/0.4646, allocations: 27.36 kB / 0.7864 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of SimCode: time 4.6e-07/0.4646, allocations: 0 / 0.7864 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of Templates: time 0.007005/0.4716, allocations: 2.861 MB / 0.7892 GB, free: 12.52 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)