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.001551/0.001551, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001611/0.001611, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.393/1.393, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002504/0.002504, allocations: 287.2 kB / 291.3 MB, free: 14.51 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.193/1.193, allocations: 178.6 MB / 0.5079 GB, free: 12.68 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002789/0.002789, allocations: 99.84 kB / 0.6071 GB, free: 9.266 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1838, allocations: 89.14 MB / 0.6942 GB, free: 48 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004407/0.1883, allocations: 2.477 MB / 0.6966 GB, free: 13.55 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.1898, allocations: 0.7906 MB / 0.6974 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.687e-05/0.1899, allocations: 4 kB / 0.6974 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001254/0.1912, allocations: 0.5219 MB / 0.6979 GB, free: 12.22 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002771/0.1915, allocations: 111.5 kB / 0.698 GB, free: 12.11 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.1918, allocations: 111.7 kB / 0.6981 GB, free: 12 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.1921, allocations: 195.4 kB / 0.6983 GB, free: 11.81 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003711/0.1924, allocations: 170.2 kB / 0.6984 GB, free: 11.64 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.1926, allocations: 83.73 kB / 0.6985 GB, free: 11.56 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.1928, allocations: 95.64 kB / 0.6986 GB, free: 11.47 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.1928, allocations: 12 kB / 0.6986 GB, free: 11.46 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.193, allocations: 107.8 kB / 0.6987 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.294e-05/0.1931, allocations: 59.81 kB / 0.6988 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.62e-05/0.1932, allocations: 71.67 kB / 0.6988 GB, free: 11.22 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003227/0.1936, allocations: 219.3 kB / 0.699 GB, free: 11.01 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1936, allocations: 0 / 0.699 GB, free: 11.01 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.1936, allocations: 0 / 0.699 GB, free: 11.01 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.626e-06/0.1936, allocations: 0 / 0.699 GB, free: 11.01 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006549/0.1942, allocations: 439.3 kB / 0.6995 GB, free: 10.53 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.1943, allocations: 16.02 kB / 0.6995 GB, free: 10.51 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003704/0.1947, allocations: 44.72 kB / 0.6995 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.1949, allocations: 220 kB / 0.6997 GB, free: 10.21 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.195, allocations: 16.66 kB / 0.6997 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.569e-05/0.195, allocations: 12.38 kB / 0.6998 GB, free: 10.19 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003754/0.1954, allocations: 227.2 kB / 0.7 GB, free: 9.945 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1954, allocations: 4 kB / 0.7 GB, free: 9.941 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.1954, allocations: 4 kB / 0.7 GB, free: 9.938 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.599e-05/0.1955, allocations: 16.27 kB / 0.7 GB, free: 9.922 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.1957, allocations: 152.6 kB / 0.7001 GB, free: 9.773 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.1969, allocations: 1.127 MB / 0.7012 GB, free: 8.516 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 8.187e-05/0.197, allocations: 38.56 kB / 0.7013 GB, free: 8.469 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.402e-05/0.1971, allocations: 16.86 kB / 0.7013 GB, free: 8.449 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.1971, allocations: 3.938 kB / 0.7013 GB, free: 8.445 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.1971, allocations: 34.56 kB / 0.7013 GB, free: 8.402 MB / 0.545 GB Notification: Performance of pre-optimization done (n=4): time 1.583e-06/0.1971, allocations: 4 kB / 0.7013 GB, free: 8.398 MB / 0.545 GB Notification: Performance of matching and sorting (n=4): time 0.0002127/0.1973, allocations: 77.61 kB / 0.7014 GB, free: 8.316 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.1974, allocations: 55.41 kB / 0.7015 GB, free: 8.25 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.1976, allocations: 174.5 kB / 0.7016 GB, free: 8.074 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.1976, allocations: 25.7 kB / 0.7017 GB, free: 8.043 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.67e-05/0.1977, allocations: 139.4 kB / 0.7018 GB, free: 7.902 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.1977, allocations: 19.8 kB / 0.7018 GB, free: 7.883 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.787e-05/0.1978, allocations: 25.72 kB / 0.7018 GB, free: 7.852 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1979, allocations: 326.8 kB / 0.7021 GB, free: 7.523 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.25e-05/0.198, allocations: 28.84 kB / 0.7022 GB, free: 7.492 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.428e-05/0.1981, allocations: 92.38 kB / 0.7023 GB, free: 7.371 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.1983, allocations: 125.3 kB / 0.7024 GB, free: 7.215 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1983, allocations: 0 / 0.7024 GB, free: 7.215 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002253/0.1985, allocations: 133.3 kB / 0.7025 GB, free: 7.078 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1985, allocations: 8.312 kB / 0.7025 GB, free: 7.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1985, allocations: 4 kB / 0.7025 GB, free: 7.066 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.1986, allocations: 8.172 kB / 0.7025 GB, free: 7.059 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.1987, allocations: 31.92 kB / 0.7026 GB, free: 7.027 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.1987, allocations: 4 kB / 0.7026 GB, free: 7.023 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.915e-05/0.1988, allocations: 11.84 kB / 0.7026 GB, free: 7.012 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.1988, allocations: 8 kB / 0.7026 GB, free: 7.004 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001179/0.1989, allocations: 124.1 kB / 0.7027 GB, free: 6.879 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.152e-05/0.199, allocations: 89.44 kB / 0.7028 GB, free: 6.758 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001474/0.1992, allocations: 129.2 kB / 0.7029 GB, free: 6.598 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.212e-06/0.1992, allocations: 0 / 0.7029 GB, free: 6.598 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001974/0.1994, allocations: 137.3 kB / 0.703 GB, free: 6.457 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.1994, allocations: 6.031 kB / 0.703 GB, free: 6.453 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1994, allocations: 11.88 kB / 0.7031 GB, free: 6.441 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.168e-06/0.1994, allocations: 4 kB / 0.7031 GB, free: 6.438 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.604e-05/0.1995, allocations: 27.98 kB / 0.7031 GB, free: 6.41 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.1995, allocations: 7.938 kB / 0.7031 GB, free: 6.402 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.04e-05/0.1996, allocations: 7.938 kB / 0.7031 GB, free: 6.395 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.1996, allocations: 4.312 kB / 0.7031 GB, free: 6.391 MB / 0.545 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.0001137/0.1997, allocations: 192.2 kB / 0.7033 GB, free: 6.195 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.174e-05/0.1998, allocations: 11.89 kB / 0.7033 GB, free: 6.184 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.393e-05/0.1998, allocations: 12.94 kB / 0.7033 GB, free: 6.168 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1998, allocations: 3.938 kB / 0.7033 GB, free: 6.164 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1998, allocations: 0 / 0.7033 GB, free: 6.164 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1998, allocations: 0 / 0.7033 GB, free: 6.164 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004941/0.2003, allocations: 481 kB / 0.7038 GB, free: 5.625 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2003, allocations: 0 / 0.7038 GB, free: 5.625 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.317e-05/0.2004, allocations: 7.984 kB / 0.7038 GB, free: 5.617 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2004, allocations: 4 kB / 0.7038 GB, free: 5.613 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.2004, allocations: 0 / 0.7038 GB, free: 5.613 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2004, allocations: 0 / 0.7038 GB, free: 5.613 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.758e-06/0.2004, allocations: 4 kB / 0.7038 GB, free: 5.609 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001414/0.2006, allocations: 115.6 kB / 0.7039 GB, free: 5.469 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.109e-05/0.2006, allocations: 96.91 kB / 0.704 GB, free: 5.355 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.2007, allocations: 4 kB / 0.704 GB, free: 5.352 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.698e-05/0.2007, allocations: 4 kB / 0.704 GB, free: 5.348 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.791e-05/0.2007, allocations: 0 / 0.704 GB, free: 5.348 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.89e-06/0.2007, allocations: 8 kB / 0.704 GB, free: 5.34 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001151/0.2009, allocations: 131.5 kB / 0.7041 GB, free: 5.215 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2009, allocations: 0 / 0.7041 GB, free: 5.215 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003494/0.2012, allocations: 55.78 kB / 0.7042 GB, free: 5.16 MB / 0.545 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.0001213/0.2013, allocations: 99.19 kB / 0.7043 GB, free: 5.051 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002214/0.2016, allocations: 116.6 kB / 0.7044 GB, free: 4.938 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2016, allocations: 0 / 0.7044 GB, free: 4.938 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.958e-05/0.2016, allocations: 15.94 kB / 0.7044 GB, free: 4.922 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.2019, allocations: 25.61 kB / 0.7044 GB, free: 4.898 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005508/0.2024, allocations: 313.3 kB / 0.7047 GB, free: 4.551 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/0.2028, allocations: 0.7241 MB / 0.7054 GB, free: 3.801 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.274e-05/0.2029, allocations: 15.44 kB / 0.7055 GB, free: 3.785 MB / 0.545 GB Notification: Performance of SimCode: time 2.6e-07/0.2029, allocations: 0 / 0.7055 GB, free: 3.785 MB / 0.545 GB Notification: Performance of Templates: time 0.003213/0.2061, allocations: 1.456 MB / 0.7069 GB, free: 2.336 MB / 0.545 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)