Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001292/0.001292, allocations: 103.1 kB / 16.27 MB, free: 5.992 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.001475/0.001476, allocations: 188.1 kB / 17.19 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.1 MB / 223.1 MB, free: 12.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.78/1.78, allocations: 292.3 MB / 0.5495 GB, free: 17.47 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 63.91 kB / 0.6722 GB, free: 6.52 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2585, allocations: 114.5 MB / 0.784 GB, free: 3.855 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005364/0.2639, allocations: 3.064 MB / 0.787 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.4034/0.6674, allocations: 1.722 MB / 0.7887 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002481/0.6677, allocations: 5.406 kB / 0.7887 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.6688, allocations: 327.9 kB / 0.789 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0006167/0.6695, allocations: 216.3 kB / 0.7892 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.00056/0.67, allocations: 178.6 kB / 0.7894 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004626/0.6705, allocations: 313.5 kB / 0.7897 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004304/0.671, allocations: 245.6 kB / 0.7899 GB, free: 46.04 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002702/0.6712, allocations: 140 kB / 0.7901 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003688/0.6716, allocations: 160.1 kB / 0.7902 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.516e-05/0.6717, allocations: 20.66 kB / 0.7902 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004774/0.6722, allocations: 243.1 kB / 0.7905 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.6723, allocations: 101.8 kB / 0.7906 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.6725, allocations: 125.7 kB / 0.7907 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0006991/0.6732, allocations: 419.8 kB / 0.7911 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.6732, allocations: 0 / 0.7911 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.134e-06/0.6732, allocations: 6.562 kB / 0.7911 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.117e-05/0.6732, allocations: 1.75 kB / 0.7911 GB, free: 45.91 MB / 0.6544 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.001068/0.6743, allocations: 0.5349 MB / 0.7916 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.6743, allocations: 11 kB / 0.7916 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000836/0.6752, allocations: 98.41 kB / 0.7917 GB, free: 45.47 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.6755, allocations: 256.2 kB / 0.792 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.6755, allocations: 16.94 kB / 0.792 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.6757, allocations: 28.42 kB / 0.792 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004897/0.6762, allocations: 375.4 kB / 0.7924 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.6762, allocations: 0 / 0.7924 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.291e-05/0.6762, allocations: 11.83 kB / 0.7924 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-05/0.6763, allocations: 32.61 kB / 0.7924 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004162/0.6767, allocations: 306.2 kB / 0.7927 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.6782, allocations: 1.531 MB / 0.7942 GB, free: 44.1 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003754/0.6786, allocations: 241.2 kB / 0.7944 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.6787, allocations: 114.3 kB / 0.7945 GB, free: 44.06 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.6788, allocations: 85.55 kB / 0.7946 GB, free: 43.97 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.6789, allocations: 37.66 kB / 0.7947 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=18): time 1.723e-06/0.6789, allocations: 0 / 0.7947 GB, free: 43.93 MB / 0.6544 GB Notification: Performance of matching and sorting (n=19): time 0.001145/0.68, allocations: 0.7937 MB / 0.7954 GB, free: 43.64 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.6801, allocations: 55.25 kB / 0.7955 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.6802, allocations: 197.5 kB / 0.7957 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.6803, allocations: 29.08 kB / 0.7957 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.548e-05/0.6803, allocations: 161.5 kB / 0.7959 GB, free: 43.32 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.955e-05/0.6804, allocations: 69.25 kB / 0.7959 GB, free: 43.28 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.926e-05/0.6805, allocations: 57 kB / 0.796 GB, free: 43.26 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.513e-05/0.6805, allocations: 329.2 kB / 0.7963 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.6807, allocations: 115.2 kB / 0.7964 GB, free: 42.95 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.6808, allocations: 171.9 kB / 0.7966 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003229/0.6812, allocations: 300.8 kB / 0.7968 GB, free: 42.83 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6812, allocations: 0 / 0.7968 GB, free: 42.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006799/0.6819, allocations: 415.1 kB / 0.7972 GB, free: 42.78 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.6819, allocations: 5.469 kB / 0.7972 GB, free: 42.78 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.6819, allocations: 0 / 0.7972 GB, free: 42.78 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000384/0.6823, allocations: 99.09 kB / 0.7973 GB, free: 42.77 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.6825, allocations: 52.89 kB / 0.7974 GB, free: 42.77 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/0.684, allocations: 1.88 MB / 0.7992 GB, free: 41.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.6842, allocations: 20.31 kB / 0.7992 GB, free: 41.41 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.6843, allocations: 14.05 kB / 0.7993 GB, free: 41.41 MB / 0.6544 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.0001228/0.6844, allocations: 158.8 kB / 0.7994 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.613e-05/0.6844, allocations: 19.28 kB / 0.7994 GB, free: 41.28 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004308/0.6849, allocations: 303.6 kB / 0.7997 GB, free: 41.24 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.6849, allocations: 2.719 kB / 0.7997 GB, free: 41.24 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.6849, allocations: 0 / 0.7997 GB, free: 41.24 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.6849, allocations: 4.641 kB / 0.7997 GB, free: 41.23 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007301/0.6856, allocations: 0.7006 MB / 0.8004 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.6857, allocations: 0.9375 kB / 0.8004 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.686, allocations: 60.3 kB / 0.8005 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.686, allocations: 12.25 kB / 0.8005 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.686, allocations: 9.688 kB / 0.8005 GB, free: 40.91 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.686, allocations: 1.656 kB / 0.8005 GB, free: 40.91 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.686, allocations: 2.5 kB / 0.8005 GB, free: 40.91 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000535/0.6865, allocations: 0.5056 MB / 0.801 GB, free: 40.66 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 8.389e-05/0.6866, allocations: 119.3 kB / 0.8011 GB, free: 40.54 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.6867, allocations: 9.875 kB / 0.8011 GB, free: 40.54 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.6869, allocations: 15.73 kB / 0.8011 GB, free: 40.53 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.309e-05/0.6869, allocations: 10.44 kB / 0.8011 GB, free: 40.53 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.6869, allocations: 4.562 kB / 0.8011 GB, free: 40.53 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001081/0.687, allocations: 148.6 kB / 0.8013 GB, free: 40.43 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.11e-07/0.687, allocations: 0 / 0.8013 GB, free: 40.43 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003454/0.6874, allocations: 66.55 kB / 0.8013 GB, free: 40.43 MB / 0.6544 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.000143/0.6875, allocations: 110.6 kB / 0.8015 GB, free: 40.33 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0007256/0.6883, allocations: 446.9 kB / 0.8019 GB, free: 40.12 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6883, allocations: 0 / 0.8019 GB, free: 40.12 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.6884, allocations: 122 kB / 0.802 GB, free: 40.09 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.6889, allocations: 46.11 kB / 0.802 GB, free: 40.06 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.69, allocations: 0.6628 MB / 0.8027 GB, free: 39.66 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.6903, allocations: 0.7704 MB / 0.8034 GB, free: 38.96 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.377e-05/0.6904, allocations: 24.36 kB / 0.8035 GB, free: 38.95 MB / 0.6544 GB Notification: Performance of SimCode: time 2.4e-07/0.6904, allocations: 4.75 kB / 0.8035 GB, free: 38.95 MB / 0.6544 GB Notification: Performance of Templates: time 0.007961/0.6984, allocations: 3.596 MB / 0.807 GB, free: 38.75 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)