Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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_1.6_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.00139/0.00139, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00171/0.00171, allocations: 193.4 kB / 16.14 MB, free: 6.688 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.427/1.427, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.781/2.781, allocations: 472.6 MB / 0.7447 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 64.16 kB / 0.9114 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3683, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00529/0.3736, allocations: 3.127 MB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002884/0.3766, allocations: 1.741 MB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.3768, allocations: 7.938 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.3779, allocations: 314.4 kB / 1.073 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005888/0.3785, allocations: 195.3 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.3791, allocations: 163.7 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000608/0.3797, allocations: 458.8 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005309/0.3802, allocations: 260.7 kB / 1.074 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002693/0.3805, allocations: 107.6 kB / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003874/0.3809, allocations: 167.4 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.103e-05/0.381, allocations: 16 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005451/0.3815, allocations: 291.4 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.3817, allocations: 95.77 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001506/0.3818, allocations: 115.4 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006677/0.3825, allocations: 430.7 kB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3825, allocations: 0 / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3825, allocations: 0 / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.408e-06/0.3826, allocations: 0 / 1.075 GB, free: 3.406 MB / 0.8262 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.001213/0.3838, allocations: 0.5421 MB / 1.075 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.093e-05/0.3839, allocations: 12.03 kB / 1.075 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008312/0.3847, allocations: 100.5 kB / 1.075 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.3851, allocations: 249.7 kB / 1.076 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.3851, allocations: 16.8 kB / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.3852, allocations: 28.47 kB / 1.076 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006311/0.3859, allocations: 377.1 kB / 1.076 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.3859, allocations: 4 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.405e-05/0.386, allocations: 11.94 kB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.3861, allocations: 28.42 kB / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/0.3866, allocations: 309.4 kB / 1.076 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.3885, allocations: 1.533 MB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004441/0.389, allocations: 234.4 kB / 1.078 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.3891, allocations: 112.8 kB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.3893, allocations: 89.09 kB / 1.078 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.3893, allocations: 34.56 kB / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.3893, allocations: 0 / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001352/0.3907, allocations: 0.804 MB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.3908, allocations: 55.41 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.391, allocations: 191.1 kB / 1.079 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.391, allocations: 29.7 kB / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.3911, allocations: 159.9 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.937e-05/0.3912, allocations: 67.02 kB / 1.08 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.845e-05/0.3913, allocations: 57.59 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3914, allocations: 334.8 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.3916, allocations: 119.9 kB / 1.08 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.3918, allocations: 165.9 kB / 1.08 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/0.3922, allocations: 299.7 kB / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3922, allocations: 4 kB / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008125/0.3931, allocations: 420.8 kB / 1.081 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.887e-05/0.3931, allocations: 4 kB / 1.081 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.3931, allocations: 4 kB / 1.081 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000435/0.3935, allocations: 96.89 kB / 1.081 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.3938, allocations: 51.89 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001892/0.3957, allocations: 1.749 MB / 1.083 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.396, allocations: 15.98 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.396, allocations: 4 kB / 1.083 GB, free: 10.58 MB / 0.8419 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.0001749/0.3962, allocations: 161.7 kB / 1.083 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.274e-05/0.3962, allocations: 15.81 kB / 1.083 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004751/0.3967, allocations: 309 kB / 1.083 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3967, allocations: 4 kB / 1.083 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.3967, allocations: 0 / 1.083 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.3968, allocations: 0 / 1.083 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000912/0.3977, allocations: 0.7004 MB / 1.084 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3977, allocations: 8.047 kB / 1.084 GB, free: 9.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003018/0.398, allocations: 55.91 kB / 1.084 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.398, allocations: 7.984 kB / 1.084 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.398, allocations: 4 kB / 1.084 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.398, allocations: 8.125 kB / 1.084 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3981, allocations: 3.938 kB / 1.084 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006124/0.3987, allocations: 0.5099 MB / 1.085 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.3988, allocations: 116.9 kB / 1.085 GB, free: 8.578 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.767e-05/0.3988, allocations: 7.938 kB / 1.085 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.399, allocations: 19.92 kB / 1.085 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.837e-05/0.3991, allocations: 7.984 kB / 1.085 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.3991, allocations: 8 kB / 1.085 GB, free: 8.535 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001502/0.3993, allocations: 144.1 kB / 1.085 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.794e-06/0.3993, allocations: 0 / 1.085 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000382/0.3997, allocations: 67.94 kB / 1.085 GB, free: 8.324 MB / 0.8419 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.0001921/0.3999, allocations: 115.2 kB / 1.085 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007694/0.4006, allocations: 418.4 kB / 1.085 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.4006, allocations: 384 / 1.085 GB, free: 7.777 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.4008, allocations: 127.8 kB / 1.086 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.4013, allocations: 31.98 kB / 1.086 GB, free: 7.621 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.4026, allocations: 0.7078 MB / 1.086 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.403, allocations: 0.7794 MB / 1.087 GB, free: 6.082 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000198/0.4032, allocations: 57.91 kB / 1.087 GB, free: 6.027 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.148e-05/0.4032, allocations: 23.38 kB / 1.087 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.4032, allocations: 0 / 1.087 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of Templates: time 0.006419/0.4097, allocations: 2.683 MB / 1.09 GB, free: 3.332 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)