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.0009427/0.0009427, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.00491/0.00491, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.469/1.469, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001997/0.001997, allocations: 266.1 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.081/1.081, allocations: 178.9 MB / 0.5095 GB, free: 4.699 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004344/0.0004344, allocations: 13.56 kB / 0.6099 GB, free: 24.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1796, allocations: 90.73 MB / 0.6985 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003782/0.1835, allocations: 2.763 MB / 0.7012 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002743/0.1862, allocations: 1.7 MB / 0.7029 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.418e-05/0.1864, allocations: 4.594 kB / 0.7029 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.1866, allocations: 44.52 kB / 0.7029 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004856/0.187, allocations: 196 kB / 0.7031 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004114/0.1875, allocations: 161.1 kB / 0.7033 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000512/0.188, allocations: 465 kB / 0.7037 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009319/0.1889, allocations: 0.5302 MB / 0.7042 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.1891, allocations: 111.5 kB / 0.7043 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002974/0.1894, allocations: 144.1 kB / 0.7045 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.911e-05/0.1895, allocations: 13.91 kB / 0.7045 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004339/0.1899, allocations: 287.4 kB / 0.7048 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.19, allocations: 87.77 kB / 0.7048 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.1902, allocations: 141.1 kB / 0.705 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005026/0.1907, allocations: 418.6 kB / 0.7054 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1907, allocations: 0.6562 kB / 0.7054 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.042e-06/0.1907, allocations: 0 / 0.7054 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.1907, allocations: 2.281 kB / 0.7054 GB, free: 11.54 MB / 0.4981 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.0008814/0.1916, allocations: 0.4952 MB / 0.7059 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1917, allocations: 13.97 kB / 0.7059 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007233/0.1924, allocations: 100.5 kB / 0.706 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.1927, allocations: 247.9 kB / 0.7062 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.1928, allocations: 16.81 kB / 0.7062 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.1929, allocations: 36.47 kB / 0.7063 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006077/0.1935, allocations: 377.1 kB / 0.7066 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.1935, allocations: 0 / 0.7066 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.1935, allocations: 12 kB / 0.7066 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.804e-05/0.1936, allocations: 28.41 kB / 0.7067 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005122/0.1942, allocations: 305.5 kB / 0.7069 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.1961, allocations: 1.529 MB / 0.7084 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004556/0.1966, allocations: 230.4 kB / 0.7087 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.1967, allocations: 116.8 kB / 0.7088 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001374/0.1969, allocations: 85.11 kB / 0.7088 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.1969, allocations: 38.55 kB / 0.7089 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.773e-06/0.197, allocations: 0 / 0.7089 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001325/0.1983, allocations: 0.7935 MB / 0.7097 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.1983, allocations: 55.34 kB / 0.7097 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.1986, allocations: 203.7 kB / 0.7099 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/0.1986, allocations: 25.7 kB / 0.7099 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.1987, allocations: 163.8 kB / 0.7101 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.279e-05/0.1988, allocations: 63.09 kB / 0.7101 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.055e-05/0.1988, allocations: 33.64 kB / 0.7102 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.199, allocations: 334.8 kB / 0.7105 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.1992, allocations: 111.9 kB / 0.7106 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.1994, allocations: 171 kB / 0.7108 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004533/0.1999, allocations: 307.7 kB / 0.7111 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1999, allocations: 0 / 0.7111 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000794/0.2007, allocations: 417.1 kB / 0.7115 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.2007, allocations: 8 kB / 0.7115 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2007, allocations: 0 / 0.7115 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004201/0.2012, allocations: 105 kB / 0.7116 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.2014, allocations: 55.89 kB / 0.7116 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001989/0.2034, allocations: 1.73 MB / 0.7133 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/0.2037, allocations: 20 kB / 0.7133 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.2037, allocations: 16.06 kB / 0.7133 GB, free: 2.789 MB / 0.4981 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.0001672/0.2039, allocations: 157.7 kB / 0.7135 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.623e-05/0.2039, allocations: 15.81 kB / 0.7135 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005229/0.2044, allocations: 305.3 kB / 0.7138 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.2045, allocations: 4.188 kB / 0.7138 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2045, allocations: 8 kB / 0.7138 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2045, allocations: 0 / 0.7138 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009625/0.2054, allocations: 0.7047 MB / 0.7145 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2055, allocations: 3.938 kB / 0.7145 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/0.2058, allocations: 59.89 kB / 0.7146 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.2058, allocations: 0 / 0.7146 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.2058, allocations: 8 kB / 0.7146 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2058, allocations: 0 / 0.7146 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.2058, allocations: 12 kB / 0.7146 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006653/0.2065, allocations: 0.5091 MB / 0.7151 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.2066, allocations: 112.9 kB / 0.7152 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.2067, allocations: 8 kB / 0.7152 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.2068, allocations: 19.92 kB / 0.7152 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.2069, allocations: 12.05 kB / 0.7152 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.2069, allocations: 11.94 kB / 0.7152 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001426/0.2071, allocations: 144.1 kB / 0.7154 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2071, allocations: 0 / 0.7154 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003598/0.2074, allocations: 68 kB / 0.7154 GB, free: 0.5312 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.0001706/0.2076, allocations: 103.2 kB / 0.7155 GB, free: 428 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007483/0.2084, allocations: 422.6 kB / 0.7159 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2084, allocations: 0 / 0.7159 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000177/0.2086, allocations: 119.8 kB / 0.7161 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.209, allocations: 35.97 kB / 0.7161 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.2102, allocations: 0.7622 MB / 0.7168 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.2107, allocations: 0.7755 MB / 0.7176 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000176/0.2109, allocations: 61.89 kB / 0.7176 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.632e-05/0.2109, allocations: 19.44 kB / 0.7177 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of SimCode: time 2.41e-07/0.2109, allocations: 0 / 0.7177 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of Templates: time 0.006523/0.2175, allocations: 2.639 MB / 0.7202 GB, free: 11.55 MB / 0.5137 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)