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.001198/0.001202, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00109/0.00109, allocations: 194.2 kB / 16.13 MB, free: 6.668 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.321/1.321, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002035/0.002035, allocations: 286.6 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9572/0.9572, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 90.09 kB / 0.5945 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1412, allocations: 86.99 MB / 0.6794 GB, free: 1.188 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004166/0.1454, allocations: 3.119 MB / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.1477, allocations: 1.726 MB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.243e-05/0.1478, allocations: 7.938 kB / 0.6842 GB, free: 12.33 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008582/0.1487, allocations: 311 kB / 0.6845 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00035/0.1491, allocations: 199.3 kB / 0.6847 GB, free: 11.83 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.1494, allocations: 171.6 kB / 0.6848 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.1498, allocations: 462.8 kB / 0.6853 GB, free: 11.21 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003968/0.1502, allocations: 236.6 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.1504, allocations: 127.5 kB / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.1507, allocations: 159.5 kB / 0.6858 GB, free: 10.7 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/0.1507, allocations: 16 kB / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003874/0.1511, allocations: 299.3 kB / 0.6861 GB, free: 10.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.49e-05/0.1512, allocations: 87.78 kB / 0.6862 GB, free: 10.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.1513, allocations: 119.4 kB / 0.6863 GB, free: 10.18 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004478/0.1518, allocations: 426.7 kB / 0.6867 GB, free: 9.766 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1518, allocations: 0 / 0.6867 GB, free: 9.766 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1518, allocations: 0 / 0.6867 GB, free: 9.766 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1518, allocations: 0 / 0.6867 GB, free: 9.766 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008522/0.1527, allocations: 0.5459 MB / 0.6872 GB, free: 9.172 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.1527, allocations: 8.031 kB / 0.6872 GB, free: 9.164 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007103/0.1534, allocations: 92.55 kB / 0.6873 GB, free: 9.074 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.1537, allocations: 257.4 kB / 0.6876 GB, free: 8.785 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.1538, allocations: 16.81 kB / 0.6876 GB, free: 8.77 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.475e-05/0.1539, allocations: 24.56 kB / 0.6876 GB, free: 8.746 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005599/0.1544, allocations: 377.1 kB / 0.688 GB, free: 8.355 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.1544, allocations: 0 / 0.688 GB, free: 8.355 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.1545, allocations: 15.98 kB / 0.688 GB, free: 8.34 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.346e-05/0.1546, allocations: 24.42 kB / 0.688 GB, free: 8.316 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004544/0.155, allocations: 309.5 kB / 0.6883 GB, free: 8.016 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001606/0.1567, allocations: 1.541 MB / 0.6898 GB, free: 6.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004004/0.1571, allocations: 234.3 kB / 0.69 GB, free: 6.082 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.1572, allocations: 112.8 kB / 0.6901 GB, free: 5.969 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.1574, allocations: 85.09 kB / 0.6902 GB, free: 5.867 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.1574, allocations: 42.56 kB / 0.6902 GB, free: 5.816 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.303e-06/0.1574, allocations: 0 / 0.6902 GB, free: 5.816 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001153/0.1586, allocations: 0.7853 MB / 0.691 GB, free: 4.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.1586, allocations: 59.34 kB / 0.6911 GB, free: 4.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.1588, allocations: 186.7 kB / 0.6913 GB, free: 4.719 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.1588, allocations: 25.7 kB / 0.6913 GB, free: 4.688 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.775e-05/0.1589, allocations: 163.8 kB / 0.6914 GB, free: 4.523 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.745e-05/0.159, allocations: 86.92 kB / 0.6915 GB, free: 4.438 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.98e-05/0.1591, allocations: 49.7 kB / 0.6916 GB, free: 4.383 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1592, allocations: 330.8 kB / 0.6919 GB, free: 4.051 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.1594, allocations: 115.9 kB / 0.692 GB, free: 3.938 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/0.1596, allocations: 168.1 kB / 0.6921 GB, free: 3.754 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.1599, allocations: 299 kB / 0.6924 GB, free: 3.445 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.1599, allocations: 7.938 kB / 0.6924 GB, free: 3.438 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007162/0.1607, allocations: 417.8 kB / 0.6928 GB, free: 3.02 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.1607, allocations: 4 kB / 0.6928 GB, free: 3.016 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1607, allocations: 4 kB / 0.6928 GB, free: 3.012 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004089/0.1611, allocations: 100.9 kB / 0.6929 GB, free: 2.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/0.1614, allocations: 51.91 kB / 0.693 GB, free: 2.859 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001744/0.1631, allocations: 1.738 MB / 0.6947 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.1633, allocations: 15.98 kB / 0.6947 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.1634, allocations: 8 kB / 0.6947 GB, free: 0.9648 MB / 494.1 MB 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.0001568/0.1635, allocations: 166.4 kB / 0.6949 GB, free: 0.793 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.865e-05/0.1636, allocations: 15.81 kB / 0.6949 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004686/0.1641, allocations: 292.7 kB / 0.6952 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1641, allocations: 4 kB / 0.6952 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-06/0.1641, allocations: 0 / 0.6952 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.1641, allocations: 3.984 kB / 0.6952 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008449/0.165, allocations: 0.7145 MB / 0.6959 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.165, allocations: 0 / 0.6959 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002936/0.1653, allocations: 56.08 kB / 0.6959 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.1653, allocations: 8 kB / 0.6959 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.1653, allocations: 4 kB / 0.6959 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1653, allocations: 4 kB / 0.6959 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1653, allocations: 3.938 kB / 0.6959 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005884/0.1659, allocations: 0.5142 MB / 0.6964 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.81e-05/0.166, allocations: 116.9 kB / 0.6966 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.1661, allocations: 0 / 0.6966 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.1663, allocations: 19.92 kB / 0.6966 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.262e-05/0.1663, allocations: 11.97 kB / 0.6966 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.1663, allocations: 12 kB / 0.6966 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001251/0.1665, allocations: 144.7 kB / 0.6967 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1665, allocations: 0 / 0.6967 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003469/0.1668, allocations: 72 kB / 0.6968 GB, free: 14.7 MB / 0.4981 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.0001531/0.167, allocations: 107.2 kB / 0.6969 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006976/0.1677, allocations: 425.1 kB / 0.6973 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1677, allocations: 0 / 0.6973 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.1679, allocations: 127.8 kB / 0.6974 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000374/0.1682, allocations: 27.98 kB / 0.6975 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.1694, allocations: 0.7217 MB / 0.6982 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.1697, allocations: 0.7716 MB / 0.6989 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001655/0.1699, allocations: 57.91 kB / 0.699 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.281e-05/0.1699, allocations: 19.44 kB / 0.699 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.17, allocations: 0 / 0.699 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of Templates: time 0.00548/0.1754, allocations: 2.691 MB / 0.7016 GB, free: 9.719 MB / 0.4981 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)