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.0009665/0.0009666, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007542/0.007542, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.856/1.856, allocations: 205.4 MB / 222.4 MB, free: 5.551 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.836/1.836, allocations: 292.7 MB / 0.5502 GB, free: 14.48 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.0005392/0.0005393, allocations: 16.81 kB / 0.6743 GB, free: 25.79 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2842, allocations: 116.3 MB / 0.7879 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003671/0.2879, allocations: 2.757 MB / 0.7906 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002592/0.2905, allocations: 1.696 MB / 0.7922 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.2907, allocations: 0 / 0.7922 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.2909, allocations: 35.72 kB / 0.7923 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004888/0.2914, allocations: 199.3 kB / 0.7925 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004409/0.2918, allocations: 175.6 kB / 0.7926 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004319/0.2923, allocations: 458.8 kB / 0.7931 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000884/0.2932, allocations: 0.5321 MB / 0.7936 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.2933, allocations: 99.62 kB / 0.7937 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003189/0.2937, allocations: 151.4 kB / 0.7938 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.797e-05/0.2937, allocations: 12 kB / 0.7938 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004284/0.2941, allocations: 291.4 kB / 0.7941 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.2943, allocations: 95.7 kB / 0.7942 GB, free: 5.043 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.2944, allocations: 137.2 kB / 0.7943 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004754/0.2949, allocations: 422.6 kB / 0.7947 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2949, allocations: 0 / 0.7947 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.994e-06/0.2949, allocations: 0 / 0.7947 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.2949, allocations: 0 / 0.7947 GB, free: 4.488 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.0009312/0.2958, allocations: 0.5029 MB / 0.7952 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.2959, allocations: 12.03 kB / 0.7952 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007178/0.2966, allocations: 96.55 kB / 0.7953 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.2969, allocations: 251.8 kB / 0.7956 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.297, allocations: 20.8 kB / 0.7956 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.933e-05/0.2971, allocations: 20.56 kB / 0.7956 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000572/0.2976, allocations: 377.2 kB / 0.796 GB, free: 3.117 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.2977, allocations: 4 kB / 0.796 GB, free: 3.113 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.576e-05/0.2977, allocations: 15.94 kB / 0.796 GB, free: 3.098 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-05/0.2978, allocations: 24.42 kB / 0.796 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004638/0.2983, allocations: 309.5 kB / 0.7963 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.3, allocations: 1.529 MB / 0.7978 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004065/0.3004, allocations: 234.3 kB / 0.798 GB, free: 0.8516 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.3006, allocations: 112.8 kB / 0.7981 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001544/0.3007, allocations: 89.09 kB / 0.7982 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.3008, allocations: 34.56 kB / 0.7983 GB, free: 0.5898 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 2.074e-06/0.3008, allocations: 0 / 0.7983 GB, free: 0.5898 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001242/0.302, allocations: 0.7996 MB / 0.799 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.3021, allocations: 51.41 kB / 0.7991 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.3023, allocations: 194.6 kB / 0.7993 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.3023, allocations: 25.7 kB / 0.7993 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.3024, allocations: 163.8 kB / 0.7995 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 5.067e-05/0.3025, allocations: 67.03 kB / 0.7995 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.832e-05/0.3025, allocations: 29.7 kB / 0.7995 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3027, allocations: 338.8 kB / 0.7999 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.3029, allocations: 115.9 kB / 0.8 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.3031, allocations: 163.5 kB / 0.8001 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003812/0.3035, allocations: 305.6 kB / 0.8004 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3035, allocations: 0 / 0.8004 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000727/0.3042, allocations: 417.9 kB / 0.8008 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.3042, allocations: 8 kB / 0.8008 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3042, allocations: 0 / 0.8008 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004209/0.3047, allocations: 96.75 kB / 0.8009 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.3049, allocations: 64.03 kB / 0.801 GB, free: 13.65 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.3068, allocations: 1.73 MB / 0.8027 GB, free: 11.78 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.307, allocations: 16.02 kB / 0.8027 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.3071, allocations: 12 kB / 0.8027 GB, free: 11.75 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.0001858/0.3073, allocations: 159.3 kB / 0.8029 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.779e-05/0.3073, allocations: 15.81 kB / 0.8029 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005103/0.3078, allocations: 306.1 kB / 0.8032 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.3078, allocations: 4 kB / 0.8032 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.3079, allocations: 0 / 0.8032 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.3079, allocations: 0 / 0.8032 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009384/0.3088, allocations: 0.7107 MB / 0.8039 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3088, allocations: 7.984 kB / 0.8039 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/0.3091, allocations: 59.97 kB / 0.8039 GB, free: 10.43 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.3091, allocations: 3.984 kB / 0.8039 GB, free: 10.42 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.3092, allocations: 8 kB / 0.8039 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3092, allocations: 0 / 0.8039 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3092, allocations: 7.938 kB / 0.8039 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006059/0.3098, allocations: 0.5048 MB / 0.8044 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.3099, allocations: 112.9 kB / 0.8045 GB, free: 9.75 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.3099, allocations: 8 kB / 0.8045 GB, free: 9.742 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.3101, allocations: 23.91 kB / 0.8046 GB, free: 9.719 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.555e-05/0.3102, allocations: 11.92 kB / 0.8046 GB, free: 9.707 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.3102, allocations: 8 kB / 0.8046 GB, free: 9.699 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001358/0.3103, allocations: 144.6 kB / 0.8047 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3103, allocations: 0 / 0.8047 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003754/0.3107, allocations: 71.98 kB / 0.8048 GB, free: 9.488 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.0002082/0.3109, allocations: 107.3 kB / 0.8049 GB, free: 9.371 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008203/0.3118, allocations: 424.1 kB / 0.8053 GB, free: 8.945 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3118, allocations: 0 / 0.8053 GB, free: 8.945 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000156/0.3119, allocations: 119.2 kB / 0.8054 GB, free: 8.832 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000496/0.3124, allocations: 40.05 kB / 0.8055 GB, free: 8.793 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.3137, allocations: 0.7604 MB / 0.8062 GB, free: 8.004 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.3141, allocations: 0.783 MB / 0.807 GB, free: 7.191 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001674/0.3143, allocations: 57.91 kB / 0.807 GB, free: 7.137 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.837e-05/0.3144, allocations: 19.44 kB / 0.807 GB, free: 7.117 MB / 0.6231 GB Notification: Performance of SimCode: time 3.81e-07/0.3144, allocations: 0 / 0.807 GB, free: 7.117 MB / 0.6231 GB Notification: Performance of Templates: time 0.006524/0.3209, allocations: 2.638 MB / 0.8096 GB, free: 4.496 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: