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.001066/0.001066, allocations: 108 kB / 15.6 MB, free: 132 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.001125/0.001125, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.863/2.863, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 61.69 kB / 0.912 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3443, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004638/0.349, allocations: 3.077 MB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002788/0.3518, allocations: 1.733 MB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.352, allocations: 4 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.353, allocations: 329.9 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005305/0.3536, allocations: 215.1 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005489/0.3541, allocations: 183.5 kB / 1.074 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.3545, allocations: 315 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003987/0.3549, allocations: 245.5 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.3551, allocations: 139.5 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003122/0.3554, allocations: 159.4 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.3555, allocations: 23.94 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004495/0.3559, allocations: 243.5 kB / 1.075 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.3561, allocations: 103.8 kB / 1.075 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.3562, allocations: 119.4 kB / 1.075 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004653/0.3567, allocations: 426.7 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3567, allocations: 0 / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.814e-06/0.3567, allocations: 0 / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.3567, allocations: 0 / 1.075 GB, free: 3.145 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.0009278/0.3576, allocations: 0.5342 MB / 1.076 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3577, allocations: 8.031 kB / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007606/0.3584, allocations: 100.5 kB / 1.076 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.3587, allocations: 260 kB / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.3588, allocations: 16.81 kB / 1.076 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-05/0.3589, allocations: 28.47 kB / 1.076 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005433/0.3594, allocations: 369.2 kB / 1.077 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.3595, allocations: 3.938 kB / 1.077 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.3595, allocations: 15.98 kB / 1.077 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/0.3596, allocations: 32.41 kB / 1.077 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004488/0.3601, allocations: 305.5 kB / 1.077 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.3618, allocations: 1.525 MB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004634/0.3622, allocations: 243.7 kB / 1.079 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.3624, allocations: 112.8 kB / 1.079 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/0.3625, allocations: 89.09 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.3626, allocations: 30.56 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.693e-06/0.3626, allocations: 0 / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001248/0.3638, allocations: 0.8018 MB / 1.08 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/0.3639, allocations: 51.41 kB / 1.08 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.3641, allocations: 194.6 kB / 1.08 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.3641, allocations: 29.7 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.466e-05/0.3642, allocations: 155.9 kB / 1.08 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.118e-05/0.3642, allocations: 70.98 kB / 1.08 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.384e-05/0.3643, allocations: 61.59 kB / 1.08 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3645, allocations: 334.8 kB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.3646, allocations: 111.9 kB / 1.081 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.3648, allocations: 173.9 kB / 1.081 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003706/0.3652, allocations: 296.2 kB / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3652, allocations: 0 / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007498/0.366, allocations: 422.8 kB / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.366, allocations: 4 kB / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.366, allocations: 0 / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004513/0.3665, allocations: 100.7 kB / 1.082 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.3668, allocations: 52.08 kB / 1.082 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001887/0.3687, allocations: 1.887 MB / 1.083 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.3689, allocations: 19.92 kB / 1.083 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.3689, allocations: 4 kB / 1.083 GB, free: 10.18 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.0001793/0.3691, allocations: 164 kB / 1.084 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.204e-05/0.3692, allocations: 15.81 kB / 1.084 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004778/0.3696, allocations: 299.2 kB / 1.084 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3696, allocations: 4 kB / 1.084 GB, free: 9.695 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.3697, allocations: 0 / 1.084 GB, free: 9.695 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3697, allocations: 3.938 kB / 1.084 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008982/0.3706, allocations: 0.7043 MB / 1.085 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.3706, allocations: 0 / 1.085 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.3709, allocations: 55.89 kB / 1.085 GB, free: 8.871 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.3709, allocations: 4 kB / 1.085 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.3709, allocations: 7.938 kB / 1.085 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3709, allocations: 7.984 kB / 1.085 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3709, allocations: 3.984 kB / 1.085 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005825/0.3715, allocations: 0.5102 MB / 1.085 GB, free: 8.316 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.3716, allocations: 120.9 kB / 1.085 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.3717, allocations: 4 kB / 1.085 GB, free: 8.176 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.3719, allocations: 11.98 kB / 1.085 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.3719, allocations: 15.92 kB / 1.085 GB, free: 8.148 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.3719, allocations: 12 kB / 1.085 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001369/0.3721, allocations: 148.1 kB / 1.085 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.51e-07/0.3721, allocations: 0 / 1.085 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000386/0.3725, allocations: 68 kB / 1.086 GB, free: 7.922 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.0001777/0.3727, allocations: 111.2 kB / 1.086 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007578/0.3734, allocations: 457.9 kB / 1.086 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3734, allocations: 0 / 1.086 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.3736, allocations: 117.4 kB / 1.086 GB, free: 7.23 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.374, allocations: 40.84 kB / 1.086 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.3752, allocations: 0.6288 MB / 1.087 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.3756, allocations: 0.7753 MB / 1.088 GB, free: 5.734 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001804/0.3758, allocations: 61.89 kB / 1.088 GB, free: 5.676 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.436e-05/0.3758, allocations: 19.44 kB / 1.088 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.3758, allocations: 0 / 1.088 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of Templates: time 0.006838/0.3827, allocations: 2.784 MB / 1.09 GB, free: 2.887 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)