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.000955/0.0009552, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.009249/0.009249, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.449/1.449, allocations: 223.2 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.898/2.898, allocations: 473.4 MB / 0.7469 GB, free: 6.062 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.0003769, allocations: 9.469 kB / 0.9158 GB, free: 33.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.38/0.3804, allocations: 162.2 MB / 1.074 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003757/0.3842, allocations: 2.766 MB / 1.077 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002772/0.387, allocations: 1.699 MB / 1.078 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.3872, allocations: 4 kB / 1.079 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002018/0.3874, allocations: 35.7 kB / 1.079 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005332/0.3879, allocations: 195.3 kB / 1.079 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004955/0.3884, allocations: 167.7 kB / 1.079 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004551/0.3889, allocations: 470.7 kB / 1.079 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009331/0.3898, allocations: 0.5319 MB / 1.08 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.39, allocations: 99.62 kB / 1.08 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003189/0.3904, allocations: 151.5 kB / 1.08 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.3904, allocations: 12 kB / 1.08 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004638/0.3909, allocations: 295.4 kB / 1.08 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.391, allocations: 91.7 kB / 1.08 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.3911, allocations: 125.2 kB / 1.081 GB, free: 0.8438 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004744/0.3916, allocations: 430.8 kB / 1.081 GB, free: 432 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.3916, allocations: 4 kB / 1.081 GB, free: 428 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3916, allocations: 0 / 1.081 GB, free: 428 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.3917, allocations: 0 / 1.081 GB, free: 428 kB / 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.0008861/0.3926, allocations: 0.4991 MB / 1.081 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3926, allocations: 8.031 kB / 1.081 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007264/0.3933, allocations: 96.55 kB / 1.082 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002964/0.3936, allocations: 257.8 kB / 1.082 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.3937, allocations: 16.75 kB / 1.082 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.3938, allocations: 24.56 kB / 1.082 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005613/0.3944, allocations: 377.2 kB / 1.082 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.3944, allocations: 4 kB / 1.082 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.3944, allocations: 7.984 kB / 1.082 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/0.3945, allocations: 28.42 kB / 1.082 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004683/0.395, allocations: 313.4 kB / 1.083 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.3967, allocations: 1.525 MB / 1.084 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004121/0.3971, allocations: 235.2 kB / 1.084 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.3973, allocations: 120.7 kB / 1.084 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001495/0.3975, allocations: 89.09 kB / 1.084 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.3975, allocations: 34.56 kB / 1.085 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.904e-06/0.3975, allocations: 0 / 1.085 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001261/0.3988, allocations: 0.792 MB / 1.085 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.3988, allocations: 51.41 kB / 1.085 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000197/0.399, allocations: 199 kB / 1.086 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.3991, allocations: 29.7 kB / 1.086 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.3992, allocations: 163.8 kB / 1.086 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.419e-05/0.3992, allocations: 63.09 kB / 1.086 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.558e-05/0.3993, allocations: 33.7 kB / 1.086 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3994, allocations: 338.7 kB / 1.086 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.3996, allocations: 115.9 kB / 1.086 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.3998, allocations: 165.9 kB / 1.086 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000385/0.4002, allocations: 295.3 kB / 1.087 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.4002, allocations: 0 / 1.087 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007313/0.401, allocations: 423.2 kB / 1.087 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.401, allocations: 4 kB / 1.087 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.401, allocations: 4 kB / 1.087 GB, free: 9.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004008/0.4014, allocations: 108.9 kB / 1.087 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/0.4017, allocations: 51.91 kB / 1.087 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.4035, allocations: 1.737 MB / 1.089 GB, free: 7.695 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.4037, allocations: 15.98 kB / 1.089 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.4037, allocations: 8 kB / 1.089 GB, free: 7.672 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.0001756/0.4039, allocations: 161.7 kB / 1.089 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.633e-05/0.4039, allocations: 19.88 kB / 1.089 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004972/0.4044, allocations: 300.7 kB / 1.089 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.4045, allocations: 0 / 1.089 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.4045, allocations: 0 / 1.089 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.4045, allocations: 7.984 kB / 1.089 GB, free: 7.18 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008823/0.4054, allocations: 0.709 MB / 1.09 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.4054, allocations: 4 kB / 1.09 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.4057, allocations: 59.89 kB / 1.09 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.4057, allocations: 0 / 1.09 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.4057, allocations: 11.94 kB / 1.09 GB, free: 6.336 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.4057, allocations: 0 / 1.09 GB, free: 6.336 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4057, allocations: 3.938 kB / 1.09 GB, free: 6.332 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005832/0.4063, allocations: 0.5111 MB / 1.091 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.4064, allocations: 120.9 kB / 1.091 GB, free: 5.664 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.4065, allocations: 8 kB / 1.091 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.4066, allocations: 15.91 kB / 1.091 GB, free: 5.641 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/0.4067, allocations: 15.98 kB / 1.091 GB, free: 5.625 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.4067, allocations: 7.938 kB / 1.091 GB, free: 5.617 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001336/0.4069, allocations: 144.1 kB / 1.091 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4069, allocations: 0 / 1.091 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004043/0.4073, allocations: 68.06 kB / 1.091 GB, free: 5.406 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.0001748/0.4075, allocations: 107.2 kB / 1.091 GB, free: 5.289 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000725/0.4082, allocations: 423.2 kB / 1.092 GB, free: 4.863 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4082, allocations: 384 / 1.092 GB, free: 4.863 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.4084, allocations: 123.9 kB / 1.092 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.4088, allocations: 38.78 kB / 1.092 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.4101, allocations: 0.7566 MB / 1.092 GB, free: 3.922 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.4104, allocations: 0.7717 MB / 1.093 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001825/0.4106, allocations: 65.89 kB / 1.093 GB, free: 3.062 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.734e-05/0.4107, allocations: 19.44 kB / 1.093 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.4107, allocations: 0 / 1.093 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of Templates: time 0.006096/0.4168, allocations: 2.648 MB / 1.096 GB, free: 420 kB / 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)