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.001749/0.001749, allocations: 107.3 kB / 16.29 MB, free: 6.43 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.00162/0.00162, allocations: 184 kB / 17.22 MB, free: 5.934 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.642/1.642, allocations: 205.1 MB / 223.1 MB, free: 12.31 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 2.111/2.111, allocations: 292.3 MB / 0.5495 GB, free: 17.55 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.001881/0.001881, allocations: 59.91 kB / 0.6722 GB, free: 6.59 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3139, allocations: 114.6 MB / 0.7841 GB, free: 3.922 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.006871/0.3209, allocations: 3.066 MB / 0.7871 GB, free: 0.8359 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.5565/0.8774, allocations: 1.725 MB / 0.7888 GB, free: 46.04 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002028/0.8776, allocations: 5.719 kB / 0.7888 GB, free: 46.04 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0009726/0.8786, allocations: 330 kB / 0.7891 GB, free: 46.04 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0005624/0.8792, allocations: 215 kB / 0.7893 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004856/0.8797, allocations: 181.7 kB / 0.7895 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003289/0.8801, allocations: 316.6 kB / 0.7898 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003878/0.8804, allocations: 240.4 kB / 0.79 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.8806, allocations: 137.3 kB / 0.7901 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.8809, allocations: 159.8 kB / 0.7903 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/0.881, allocations: 22.22 kB / 0.7903 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003848/0.8814, allocations: 240.8 kB / 0.7905 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.8815, allocations: 103.3 kB / 0.7906 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.8817, allocations: 119.2 kB / 0.7907 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004814/0.8821, allocations: 429.7 kB / 0.7911 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.8822, allocations: 0 / 0.7911 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8822, allocations: 0 / 0.7911 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.104e-05/0.8822, allocations: 1.625 kB / 0.7911 GB, free: 45.88 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.0009249/0.8831, allocations: 0.5438 MB / 0.7917 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.8832, allocations: 10.56 kB / 0.7917 GB, free: 45.46 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007253/0.8839, allocations: 94.38 kB / 0.7918 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002993/0.8842, allocations: 252.5 kB / 0.792 GB, free: 45.23 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.8842, allocations: 25.11 kB / 0.792 GB, free: 45.23 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.8844, allocations: 23.31 kB / 0.7921 GB, free: 45.23 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005221/0.8849, allocations: 383 kB / 0.7924 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.8849, allocations: 0.5938 kB / 0.7924 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.885, allocations: 9.516 kB / 0.7924 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-05/0.8851, allocations: 31.77 kB / 0.7925 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004219/0.8855, allocations: 301.1 kB / 0.7928 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.887, allocations: 1.526 MB / 0.7942 GB, free: 44.08 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004134/0.8875, allocations: 235.2 kB / 0.7945 GB, free: 44.05 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.8876, allocations: 118.3 kB / 0.7946 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001339/0.8878, allocations: 87.39 kB / 0.7947 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.8878, allocations: 31.06 kB / 0.7947 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=18): time 2.004e-06/0.8878, allocations: 0.75 kB / 0.7947 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of matching and sorting (n=19): time 0.001239/0.8891, allocations: 0.7916 MB / 0.7955 GB, free: 43.62 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.8891, allocations: 55.73 kB / 0.7955 GB, free: 43.55 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.8893, allocations: 195 kB / 0.7957 GB, free: 43.45 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.8893, allocations: 29.08 kB / 0.7957 GB, free: 43.42 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.326e-05/0.8894, allocations: 168.4 kB / 0.7959 GB, free: 43.3 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.866e-05/0.8894, allocations: 68.64 kB / 0.796 GB, free: 43.25 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.376e-05/0.8895, allocations: 52.89 kB / 0.796 GB, free: 43.24 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.901e-05/0.8896, allocations: 333.3 kB / 0.7963 GB, free: 42.92 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.8897, allocations: 114.4 kB / 0.7964 GB, free: 42.92 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.8899, allocations: 174.2 kB / 0.7966 GB, free: 42.86 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.8902, allocations: 293.1 kB / 0.7969 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.8903, allocations: 3.469 kB / 0.7969 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006903/0.891, allocations: 417.5 kB / 0.7973 GB, free: 42.75 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.891, allocations: 8.656 kB / 0.7973 GB, free: 42.75 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.891, allocations: 6.781 kB / 0.7973 GB, free: 42.75 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004199/0.8914, allocations: 92.81 kB / 0.7974 GB, free: 42.75 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002288/0.8917, allocations: 59.8 kB / 0.7974 GB, free: 42.74 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.8934, allocations: 1.872 MB / 0.7993 GB, free: 41.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.8936, allocations: 20.39 kB / 0.7993 GB, free: 41.38 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.8937, allocations: 12.48 kB / 0.7993 GB, free: 41.38 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.0001451/0.8938, allocations: 160.4 kB / 0.7995 GB, free: 41.27 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.218e-05/0.8939, allocations: 15.25 kB / 0.7995 GB, free: 41.26 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004584/0.8943, allocations: 304.7 kB / 0.7998 GB, free: 41.22 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.8943, allocations: 2.562 kB / 0.7998 GB, free: 41.22 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.8943, allocations: 3.109 kB / 0.7998 GB, free: 41.22 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.8944, allocations: 7.625 kB / 0.7998 GB, free: 41.21 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008006/0.8952, allocations: 0.6951 MB / 0.8005 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.8952, allocations: 4.969 kB / 0.8005 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002857/0.8955, allocations: 62.42 kB / 0.8005 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.8955, allocations: 0 / 0.8005 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.8955, allocations: 10.88 kB / 0.8005 GB, free: 40.89 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.8955, allocations: 2.812 kB / 0.8005 GB, free: 40.89 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.8955, allocations: 0 / 0.8005 GB, free: 40.89 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005575/0.8961, allocations: 0.5114 MB / 0.801 GB, free: 40.6 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 9.628e-05/0.8962, allocations: 121.1 kB / 0.8011 GB, free: 40.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/0.8962, allocations: 6.094 kB / 0.8012 GB, free: 40.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.8964, allocations: 14.64 kB / 0.8012 GB, free: 40.48 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-05/0.8964, allocations: 11.08 kB / 0.8012 GB, free: 40.48 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.8965, allocations: 10.45 kB / 0.8012 GB, free: 40.48 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001192/0.8966, allocations: 141.8 kB / 0.8013 GB, free: 40.39 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8966, allocations: 0 / 0.8013 GB, free: 40.39 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003723/0.897, allocations: 64.97 kB / 0.8014 GB, free: 40.38 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.0001673/0.8971, allocations: 115.6 kB / 0.8015 GB, free: 40.28 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00071/0.8979, allocations: 424.4 kB / 0.8019 GB, free: 40.07 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.8979, allocations: 1.031 kB / 0.8019 GB, free: 40.07 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.8981, allocations: 128.5 kB / 0.802 GB, free: 40.04 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.8985, allocations: 39.8 kB / 0.8021 GB, free: 40.02 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.8997, allocations: 0.6194 MB / 0.8027 GB, free: 39.66 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.8999, allocations: 0.7691 MB / 0.8034 GB, free: 38.96 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001673/0.9001, allocations: 56.25 kB / 0.8035 GB, free: 38.96 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.963e-05/0.9002, allocations: 25.31 kB / 0.8035 GB, free: 38.95 MB / 0.6544 GB Notification: Performance of SimCode: time 2.41e-07/0.9002, allocations: 4 kB / 0.8035 GB, free: 38.94 MB / 0.6544 GB Notification: Performance of Templates: time 0.008167/0.9084, allocations: 2.795 MB / 0.8062 GB, free: 38.82 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)