Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.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.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001998/0.001998, allocations: 192.8 kB / 16.25 MB, free: 6.641 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.524/1.524, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002573/0.002573, allocations: 279 kB / 290.4 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.068/1.068, allocations: 178.6 MB / 0.5069 GB, free: 4.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002824/0.002824, allocations: 95.94 kB / 0.6059 GB, free: 24.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.1845, allocations: 89.14 MB / 0.693 GB, free: 4.707 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004106/0.1886, allocations: 2.547 MB / 0.6955 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.19, allocations: 0.7797 MB / 0.6962 GB, free: 1.375 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.136e-05/0.19, allocations: 7.938 kB / 0.6962 GB, free: 1.367 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.1912, allocations: 0.5005 MB / 0.6967 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.1914, allocations: 95.61 kB / 0.6968 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002793/0.1917, allocations: 107.8 kB / 0.6969 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002504/0.192, allocations: 195.4 kB / 0.6971 GB, free: 484 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003699/0.1924, allocations: 202.2 kB / 0.6973 GB, free: 276 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.711e-05/0.1925, allocations: 79.7 kB / 0.6974 GB, free: 196 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.1927, allocations: 99.64 kB / 0.6975 GB, free: 96 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.289e-05/0.1927, allocations: 12 kB / 0.6975 GB, free: 84 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002422/0.1929, allocations: 107.8 kB / 0.6976 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.959e-05/0.193, allocations: 55.88 kB / 0.6976 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.968e-05/0.1931, allocations: 75.59 kB / 0.6977 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002919/0.1934, allocations: 223.3 kB / 0.6979 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1934, allocations: 4 kB / 0.6979 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1934, allocations: 0 / 0.6979 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.1934, allocations: 0 / 0.6979 GB, free: 15.62 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006179/0.1941, allocations: 447.3 kB / 0.6983 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.1941, allocations: 8.031 kB / 0.6983 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003595/0.1945, allocations: 48.7 kB / 0.6984 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.1947, allocations: 216.1 kB / 0.6986 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.1947, allocations: 12.66 kB / 0.6986 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.846e-05/0.1948, allocations: 12.38 kB / 0.6986 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003784/0.1952, allocations: 243.5 kB / 0.6989 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1952, allocations: 0 / 0.6989 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.1952, allocations: 8 kB / 0.6989 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/0.1952, allocations: 16.27 kB / 0.6989 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002388/0.1955, allocations: 140.7 kB / 0.699 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.1967, allocations: 1.127 MB / 0.7001 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.339e-05/0.1968, allocations: 50.5 kB / 0.7002 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.494e-05/0.1968, allocations: 16.95 kB / 0.7002 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.1969, allocations: 3.984 kB / 0.7002 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.1969, allocations: 30.56 kB / 0.7002 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.1969, allocations: 0 / 0.7002 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=4): time 0.0001847/0.1971, allocations: 77.53 kB / 0.7003 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.1971, allocations: 55.34 kB / 0.7003 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001667/0.1973, allocations: 182.4 kB / 0.7005 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.1973, allocations: 29.7 kB / 0.7005 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.1974, allocations: 143.4 kB / 0.7007 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.384e-05/0.1975, allocations: 11.81 kB / 0.7007 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.1975, allocations: 29.7 kB / 0.7007 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1977, allocations: 322.8 kB / 0.701 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.064e-05/0.1977, allocations: 28.86 kB / 0.7011 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.504e-05/0.1978, allocations: 89.42 kB / 0.7011 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/0.198, allocations: 129.2 kB / 0.7013 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.198, allocations: 0 / 0.7013 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002029/0.1982, allocations: 137.5 kB / 0.7014 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.1982, allocations: 8 kB / 0.7014 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1982, allocations: 0 / 0.7014 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1983, allocations: 7.938 kB / 0.7014 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.1984, allocations: 27.92 kB / 0.7014 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.1984, allocations: 4.312 kB / 0.7014 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.754e-05/0.1985, allocations: 19.75 kB / 0.7015 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.1985, allocations: 12 kB / 0.7015 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001046/0.1986, allocations: 120.1 kB / 0.7016 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.216e-05/0.1987, allocations: 88.75 kB / 0.7017 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001407/0.1988, allocations: 129.3 kB / 0.7018 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.072e-06/0.1988, allocations: 0 / 0.7018 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001983/0.1991, allocations: 133.3 kB / 0.7019 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.063e-06/0.1991, allocations: 4 kB / 0.7019 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1991, allocations: 8.312 kB / 0.7019 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.309e-06/0.1991, allocations: 4 kB / 0.7019 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.657e-05/0.1992, allocations: 20 kB / 0.702 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.1992, allocations: 15.86 kB / 0.702 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.413e-05/0.1992, allocations: 11.94 kB / 0.702 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.1993, allocations: 4 kB / 0.702 GB, free: 10.99 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (14): * Single equations (assignments): 14 * 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 prepare postOptimizeDAE: time 0.0001342/0.1994, allocations: 188.9 kB / 0.7022 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.252e-05/0.1994, allocations: 11.81 kB / 0.7022 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.18e-05/0.1995, allocations: 12.94 kB / 0.7022 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1995, allocations: 11.88 kB / 0.7022 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1995, allocations: 0 / 0.7022 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1995, allocations: 3.984 kB / 0.7022 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004658/0.2, allocations: 469.2 kB / 0.7026 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.695e-05/0.2, allocations: 4 kB / 0.7027 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.092e-05/0.2001, allocations: 4.125 kB / 0.7027 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.2001, allocations: 8 kB / 0.7027 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-06/0.2001, allocations: 0 / 0.7027 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2001, allocations: 3.938 kB / 0.7027 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2001, allocations: 4 kB / 0.7027 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.2003, allocations: 119.4 kB / 0.7028 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.786e-05/0.2003, allocations: 85.02 kB / 0.7029 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.2004, allocations: 0 / 0.7029 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.875e-05/0.2004, allocations: 4 kB / 0.7029 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.402e-05/0.2004, allocations: 11.92 kB / 0.7029 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.2005, allocations: 4 kB / 0.7029 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001139/0.2006, allocations: 120 kB / 0.703 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2006, allocations: 3.938 kB / 0.703 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003574/0.2009, allocations: 55.78 kB / 0.7031 GB, free: 9.77 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (4): * Single equations (assignments): 4 * 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.0001038/0.2011, allocations: 103.2 kB / 0.7032 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002027/0.2013, allocations: 107.6 kB / 0.7033 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2013, allocations: 5.25 kB / 0.7033 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.808e-05/0.2013, allocations: 16.17 kB / 0.7033 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.2016, allocations: 30.81 kB / 0.7033 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004946/0.2021, allocations: 323.2 kB / 0.7036 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.2024, allocations: 0.7202 MB / 0.7043 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.451e-05/0.2025, allocations: 32.94 kB / 0.7044 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.863e-05/0.2026, allocations: 11.44 kB / 0.7044 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.2026, allocations: 0 / 0.7044 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of Templates: time 0.00351/0.2061, allocations: 0.8519 MB / 0.7052 GB, free: 7.52 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)