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.001282/0.001283, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 200.2 kB / 16.64 MB, free: 6.453 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.612/1.612, allocations: 205.1 MB / 222.5 MB, free: 4.562 MB / 174.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.83/1.83, allocations: 292.3 MB / 0.549 GB, free: 12.8 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.001493/0.001493, allocations: 73.72 kB / 0.6723 GB, free: 25.88 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2648, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004712/0.2696, allocations: 3.069 MB / 0.7871 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002797/0.2724, allocations: 1.727 MB / 0.7888 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.2726, allocations: 7.938 kB / 0.7888 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.2737, allocations: 334.7 kB / 0.7891 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000528/0.2743, allocations: 215.1 kB / 0.7893 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004865/0.2748, allocations: 182.8 kB / 0.7895 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003613/0.2751, allocations: 319 kB / 0.7898 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000435/0.2756, allocations: 240.7 kB / 0.7901 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.2758, allocations: 143.5 kB / 0.7902 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003523/0.2761, allocations: 155.5 kB / 0.7903 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.733e-05/0.2762, allocations: 20 kB / 0.7904 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000387/0.2766, allocations: 239.5 kB / 0.7906 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.2767, allocations: 95.78 kB / 0.7907 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.2768, allocations: 135.3 kB / 0.7908 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004516/0.2773, allocations: 418.8 kB / 0.7912 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2773, allocations: 0 / 0.7912 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.803e-06/0.2773, allocations: 4 kB / 0.7912 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.2773, allocations: 0 / 0.7912 GB, free: 5.473 MB / 0.6075 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.0009373/0.2783, allocations: 0.5496 MB / 0.7917 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.2783, allocations: 12.03 kB / 0.7918 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007208/0.279, allocations: 96.53 kB / 0.7918 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.2794, allocations: 252 kB / 0.7921 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.2794, allocations: 12.81 kB / 0.7921 GB, free: 4.469 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.2795, allocations: 36.44 kB / 0.7921 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005627/0.2801, allocations: 373.1 kB / 0.7925 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.2801, allocations: 4 kB / 0.7925 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.2802, allocations: 8 kB / 0.7925 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/0.2803, allocations: 32.41 kB / 0.7925 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004578/0.2807, allocations: 301.5 kB / 0.7928 GB, free: 3.715 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.2824, allocations: 1.525 MB / 0.7943 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004062/0.2828, allocations: 234.4 kB / 0.7945 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.283, allocations: 116.8 kB / 0.7946 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.2831, allocations: 85.11 kB / 0.7947 GB, free: 1.578 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.2832, allocations: 38.5 kB / 0.7948 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.373e-06/0.2832, allocations: 0 / 0.7948 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.00125/0.2844, allocations: 0.8004 MB / 0.7955 GB, free: 0.6836 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.2845, allocations: 55.41 kB / 0.7956 GB, free: 0.6172 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001782/0.2847, allocations: 192.2 kB / 0.7958 GB, free: 432 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.513e-05/0.2847, allocations: 33.7 kB / 0.7958 GB, free: 392 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.255e-05/0.2848, allocations: 159.9 kB / 0.796 GB, free: 228 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.765e-05/0.2848, allocations: 67 kB / 0.796 GB, free: 160 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.931e-05/0.2849, allocations: 57.55 kB / 0.7961 GB, free: 96 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.2851, allocations: 334.8 kB / 0.7964 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.2852, allocations: 107.9 kB / 0.7965 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.2854, allocations: 171 kB / 0.7967 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/0.2858, allocations: 301.3 kB / 0.797 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2858, allocations: 4 kB / 0.797 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007206/0.2866, allocations: 409.9 kB / 0.7974 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2866, allocations: 4 kB / 0.7974 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.2866, allocations: 4 kB / 0.7974 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004112/0.287, allocations: 100.9 kB / 0.7975 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.2873, allocations: 51.91 kB / 0.7975 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.2891, allocations: 1.875 MB / 0.7993 GB, free: 12.56 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.2894, allocations: 19.92 kB / 0.7994 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.2894, allocations: 20.03 kB / 0.7994 GB, free: 12.52 MB / 0.6231 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.0001391/0.2895, allocations: 160.4 kB / 0.7995 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.533e-05/0.2896, allocations: 15.81 kB / 0.7995 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004544/0.29, allocations: 291.4 kB / 0.7998 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2901, allocations: 0 / 0.7998 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2901, allocations: 11.97 kB / 0.7998 GB, free: 12.04 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.2901, allocations: 7.938 kB / 0.7998 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008521/0.2909, allocations: 0.7067 MB / 0.8005 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2909, allocations: 0 / 0.8005 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002841/0.2912, allocations: 59.95 kB / 0.8006 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2913, allocations: 0 / 0.8006 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.2913, allocations: 7.938 kB / 0.8006 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.2913, allocations: 0 / 0.8006 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2913, allocations: 4.188 kB / 0.8006 GB, free: 11.19 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005866/0.2919, allocations: 0.52 MB / 0.8011 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.292, allocations: 120.9 kB / 0.8012 GB, free: 10.52 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.686e-05/0.292, allocations: 15.89 kB / 0.8012 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.2922, allocations: 7.984 kB / 0.8012 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.2923, allocations: 20.05 kB / 0.8013 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.2923, allocations: 4 kB / 0.8013 GB, free: 10.47 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000118/0.2924, allocations: 144.1 kB / 0.8014 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2924, allocations: 0 / 0.8014 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003534/0.2928, allocations: 64 kB / 0.8015 GB, free: 10.27 MB / 0.6231 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.0001644/0.2929, allocations: 107.2 kB / 0.8016 GB, free: 10.15 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.000704/0.2937, allocations: 430.6 kB / 0.802 GB, free: 9.719 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2937, allocations: 0 / 0.802 GB, free: 9.719 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.2938, allocations: 119.9 kB / 0.8021 GB, free: 9.602 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.2942, allocations: 39.86 kB / 0.8021 GB, free: 9.562 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.2954, allocations: 0.6312 MB / 0.8027 GB, free: 8.898 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.2957, allocations: 0.7753 MB / 0.8035 GB, free: 8.098 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000163/0.2959, allocations: 57.91 kB / 0.8036 GB, free: 8.043 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.143e-05/0.2959, allocations: 19.44 kB / 0.8036 GB, free: 8.023 MB / 0.6231 GB Notification: Performance of SimCode: time 2.2e-07/0.2959, allocations: 0 / 0.8036 GB, free: 8.023 MB / 0.6231 GB Notification: Performance of Templates: time 0.007283/0.3032, allocations: 2.78 MB / 0.8063 GB, free: 5.258 MB / 0.6231 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)