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.001847/0.001847, 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.002041/0.002041, allocations: 194.4 kB / 16.14 MB, free: 6.684 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.513/1.513, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002601/0.002601, allocations: 279 kB / 290.2 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.074/1.074, allocations: 178.6 MB / 0.5068 GB, free: 4.777 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002888/0.002888, allocations: 98.61 kB / 0.6057 GB, free: 25.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1648, allocations: 89.15 MB / 0.6928 GB, free: 4.828 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004842/0.1697, allocations: 3.128 MB / 0.6959 GB, free: 1.695 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.1725, allocations: 1.726 MB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.122e-05/0.1726, allocations: 4 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009302/0.1735, allocations: 302.9 kB / 0.6978 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004091/0.1739, allocations: 203.3 kB / 0.698 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.1743, allocations: 170.5 kB / 0.6982 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004875/0.1748, allocations: 462.8 kB / 0.6986 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000442/0.1753, allocations: 244.8 kB / 0.6989 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/0.1754, allocations: 115.6 kB / 0.699 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.1758, allocations: 163.4 kB / 0.6991 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.835e-05/0.1758, allocations: 16 kB / 0.6991 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004768/0.1763, allocations: 291.4 kB / 0.6994 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.1764, allocations: 103.7 kB / 0.6995 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.1766, allocations: 111.5 kB / 0.6996 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00053/0.1771, allocations: 434.6 kB / 0.7 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1771, allocations: 0 / 0.7 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.41e-07/0.1771, allocations: 0 / 0.7 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.1771, allocations: 0 / 0.7 GB, free: 13.4 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.0009478/0.1781, allocations: 0.5458 MB / 0.7006 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.1781, allocations: 12.03 kB / 0.7006 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007523/0.1789, allocations: 88.55 kB / 0.7007 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003228/0.1792, allocations: 248 kB / 0.7009 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.1793, allocations: 24.72 kB / 0.7009 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.158e-05/0.1794, allocations: 28.47 kB / 0.701 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006335/0.18, allocations: 373.2 kB / 0.7013 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.18, allocations: 4 kB / 0.7013 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.1801, allocations: 4 kB / 0.7013 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.1802, allocations: 32.41 kB / 0.7014 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000524/0.1807, allocations: 309.4 kB / 0.7016 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.1827, allocations: 1.537 MB / 0.7031 GB, free: 9.953 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.1832, allocations: 242.3 kB / 0.7034 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.1834, allocations: 118.2 kB / 0.7035 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001448/0.1835, allocations: 85.11 kB / 0.7036 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.1836, allocations: 38.55 kB / 0.7036 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.392e-06/0.1836, allocations: 0 / 0.7036 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001345/0.1849, allocations: 0.7862 MB / 0.7044 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.185, allocations: 55.41 kB / 0.7044 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.1852, allocations: 199.6 kB / 0.7046 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.1852, allocations: 33.7 kB / 0.7047 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1853, allocations: 151.9 kB / 0.7048 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.666e-05/0.1854, allocations: 78.98 kB / 0.7049 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.1855, allocations: 53.61 kB / 0.7049 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.1857, allocations: 334.8 kB / 0.7052 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.1859, allocations: 107.9 kB / 0.7053 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.1861, allocations: 178.9 kB / 0.7055 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004357/0.1866, allocations: 291.8 kB / 0.7058 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1866, allocations: 8 kB / 0.7058 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008319/0.1874, allocations: 413.6 kB / 0.7062 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.1875, allocations: 7.984 kB / 0.7062 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1875, allocations: 4 kB / 0.7062 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004384/0.1879, allocations: 96.95 kB / 0.7063 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.1882, allocations: 55.89 kB / 0.7064 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.1902, allocations: 1.738 MB / 0.7081 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.1905, allocations: 19.97 kB / 0.7081 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.1905, allocations: 4 kB / 0.7081 GB, free: 4.59 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.0001589/0.1907, allocations: 165.7 kB / 0.7082 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-05/0.1907, allocations: 23.7 kB / 0.7083 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005119/0.1913, allocations: 295.3 kB / 0.7085 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1913, allocations: 4 kB / 0.7085 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.1913, allocations: 0 / 0.7085 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.1913, allocations: 4 kB / 0.7085 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009863/0.1923, allocations: 0.709 MB / 0.7092 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.1923, allocations: 0 / 0.7092 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003186/0.1926, allocations: 55.95 kB / 0.7093 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1926, allocations: 4 kB / 0.7093 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.1927, allocations: 8.125 kB / 0.7093 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.1927, allocations: 4 kB / 0.7093 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1927, allocations: 3.938 kB / 0.7093 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006957/0.1934, allocations: 0.5152 MB / 0.7098 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.1935, allocations: 112.9 kB / 0.7099 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.74e-05/0.1936, allocations: 7.984 kB / 0.7099 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.1938, allocations: 15.92 kB / 0.7099 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.222e-05/0.1938, allocations: 11.98 kB / 0.71 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.1938, allocations: 16 kB / 0.71 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001395/0.194, allocations: 140.1 kB / 0.7101 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.194, allocations: 0 / 0.7101 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003651/0.1944, allocations: 68 kB / 0.7102 GB, free: 2.332 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.0001469/0.1945, allocations: 103.2 kB / 0.7103 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007496/0.1953, allocations: 422.6 kB / 0.7107 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1953, allocations: 7.938 kB / 0.7107 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001847/0.1955, allocations: 119.9 kB / 0.7108 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.1959, allocations: 39.91 kB / 0.7108 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.1972, allocations: 0.7195 MB / 0.7115 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004237/0.1976, allocations: 0.7755 MB / 0.7123 GB, free: 84 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001833/0.1978, allocations: 57.91 kB / 0.7123 GB, free: 28 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.127e-05/0.1979, allocations: 19.44 kB / 0.7124 GB, free: 8 kB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1979, allocations: 0 / 0.7124 GB, free: 8 kB / 0.4981 GB Notification: Performance of Templates: time 0.006507/0.2044, allocations: 2.685 MB / 0.715 GB, free: 13.34 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)