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.00165/0.00165, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001811/0.001811, allocations: 187 kB / 17.34 MB, free: 5.762 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.342/1.342, 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.002222/0.002222, allocations: 296.4 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 0.962/0.962, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 91.84 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5426/0.5444, allocations: 86.98 MB / 0.767 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004435/0.5489, allocations: 3.075 MB / 0.77 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002665/0.5516, allocations: 1.714 MB / 0.7717 GB, free: 15.12 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.5517, allocations: 11.94 kB / 0.7717 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.5528, allocations: 330.7 kB / 0.772 GB, free: 14.78 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005016/0.5533, allocations: 211.1 kB / 0.7722 GB, free: 14.57 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.5538, allocations: 179.1 kB / 0.7724 GB, free: 14.4 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.5542, allocations: 319 kB / 0.7727 GB, free: 14.09 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004174/0.5546, allocations: 244.7 kB / 0.773 GB, free: 13.85 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.5548, allocations: 131.5 kB / 0.7731 GB, free: 13.72 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003286/0.5551, allocations: 155.5 kB / 0.7732 GB, free: 13.57 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.824e-05/0.5552, allocations: 20 kB / 0.7733 GB, free: 13.55 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004003/0.5556, allocations: 247.5 kB / 0.7735 GB, free: 13.3 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.5557, allocations: 107.7 kB / 0.7736 GB, free: 13.2 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.5558, allocations: 127.4 kB / 0.7737 GB, free: 13.07 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005155/0.5564, allocations: 417.3 kB / 0.7741 GB, free: 12.67 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.5564, allocations: 4 kB / 0.7741 GB, free: 12.66 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.723e-06/0.5564, allocations: 4 kB / 0.7741 GB, free: 12.66 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.304e-06/0.5564, allocations: 0 / 0.7741 GB, free: 12.66 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.0009476/0.5574, allocations: 0.5496 MB / 0.7747 GB, free: 12.06 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.5574, allocations: 12.03 kB / 0.7747 GB, free: 12.05 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007298/0.5581, allocations: 92.55 kB / 0.7748 GB, free: 11.96 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.5585, allocations: 258.2 kB / 0.775 GB, free: 11.67 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.5585, allocations: 16.81 kB / 0.775 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.845e-05/0.5586, allocations: 28.45 kB / 0.775 GB, free: 11.63 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005505/0.5591, allocations: 377.1 kB / 0.7754 GB, free: 11.24 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.5592, allocations: 0 / 0.7754 GB, free: 11.24 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.5592, allocations: 19.98 kB / 0.7754 GB, free: 11.22 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/0.5593, allocations: 28.41 kB / 0.7754 GB, free: 11.19 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004478/0.5598, allocations: 301.5 kB / 0.7757 GB, free: 10.89 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001723/0.5615, allocations: 1.522 MB / 0.7772 GB, free: 9.223 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004156/0.5619, allocations: 234.4 kB / 0.7774 GB, free: 8.984 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.5621, allocations: 116.8 kB / 0.7776 GB, free: 8.867 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/0.5623, allocations: 85.09 kB / 0.7776 GB, free: 8.766 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.5623, allocations: 54.42 kB / 0.7777 GB, free: 8.703 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.5623, allocations: 0 / 0.7777 GB, free: 8.703 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001203/0.5635, allocations: 0.782 MB / 0.7785 GB, free: 7.871 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.5636, allocations: 55.41 kB / 0.7785 GB, free: 7.805 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.5638, allocations: 195.6 kB / 0.7787 GB, free: 7.605 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.5638, allocations: 33.7 kB / 0.7787 GB, free: 7.566 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.469e-05/0.5639, allocations: 155.9 kB / 0.7789 GB, free: 7.41 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.277e-05/0.564, allocations: 74.98 kB / 0.7789 GB, free: 7.336 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.5641, allocations: 57.61 kB / 0.779 GB, free: 7.273 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.5642, allocations: 330.8 kB / 0.7793 GB, free: 6.941 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.5643, allocations: 115.9 kB / 0.7794 GB, free: 6.828 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.5646, allocations: 171 kB / 0.7796 GB, free: 6.641 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003657/0.5649, allocations: 300.2 kB / 0.7799 GB, free: 6.328 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.5649, allocations: 0 / 0.7799 GB, free: 6.328 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007178/0.5657, allocations: 417.1 kB / 0.7803 GB, free: 5.914 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.5657, allocations: 4 kB / 0.7803 GB, free: 5.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.5657, allocations: 4 kB / 0.7803 GB, free: 5.906 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004154/0.5661, allocations: 100.9 kB / 0.7804 GB, free: 5.805 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.5664, allocations: 55.91 kB / 0.7804 GB, free: 5.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/0.5682, allocations: 1.871 MB / 0.7823 GB, free: 3.734 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.5685, allocations: 23.91 kB / 0.7823 GB, free: 3.711 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.179e-05/0.5685, allocations: 8 kB / 0.7823 GB, free: 3.703 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.0001728/0.5687, allocations: 157.8 kB / 0.7824 GB, free: 3.539 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.958e-05/0.5688, allocations: 23.73 kB / 0.7825 GB, free: 3.516 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004829/0.5692, allocations: 297.9 kB / 0.7827 GB, free: 3.223 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.5693, allocations: 0 / 0.7827 GB, free: 3.223 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.5693, allocations: 0 / 0.7827 GB, free: 3.223 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.5693, allocations: 11.94 kB / 0.7828 GB, free: 3.211 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008596/0.5701, allocations: 0.6989 MB / 0.7834 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.5701, allocations: 0 / 0.7834 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/0.5705, allocations: 59.95 kB / 0.7835 GB, free: 2.391 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.5705, allocations: 0 / 0.7835 GB, free: 2.391 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.5705, allocations: 15.88 kB / 0.7835 GB, free: 2.375 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.5705, allocations: 0 / 0.7835 GB, free: 2.375 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5705, allocations: 0 / 0.7835 GB, free: 2.375 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/0.5711, allocations: 0.5144 MB / 0.784 GB, free: 1.84 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.486e-05/0.5712, allocations: 120.8 kB / 0.7841 GB, free: 1.703 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.5712, allocations: 11.98 kB / 0.7841 GB, free: 1.691 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.5714, allocations: 11.98 kB / 0.7842 GB, free: 1.68 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.5715, allocations: 11.98 kB / 0.7842 GB, free: 1.668 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.5715, allocations: 8.062 kB / 0.7842 GB, free: 1.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001209/0.5716, allocations: 148.1 kB / 0.7843 GB, free: 1.512 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5716, allocations: 0 / 0.7843 GB, free: 1.512 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003493/0.572, allocations: 60 kB / 0.7844 GB, free: 1.453 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.0001588/0.5721, allocations: 111.2 kB / 0.7845 GB, free: 1.332 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006872/0.5728, allocations: 434.6 kB / 0.7849 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.5728, allocations: 0 / 0.7849 GB, free: 0.8945 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.573, allocations: 115.9 kB / 0.785 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.5734, allocations: 49.08 kB / 0.785 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.5746, allocations: 0.6564 MB / 0.7857 GB, free: 40 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.5749, allocations: 0.7714 MB / 0.7864 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.236e-05/0.575, allocations: 27.42 kB / 0.7865 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of SimCode: time 6.31e-07/0.575, allocations: 3.938 kB / 0.7865 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of Templates: time 0.005395/0.5804, allocations: 3.606 MB / 0.79 GB, free: 11.61 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)