Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.006817/0.006817, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001291/0.001291, allocations: 194.5 kB / 16.67 MB, free: 5.953 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.275/1.275, allocations: 222.9 MB / 240.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002142/0.002142, allocations: 298.9 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9282/0.9282, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 95.86 kB / 0.6814 GB, free: 6.926 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4242, allocations: 86.98 MB / 0.7664 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00444/0.4287, allocations: 3.085 MB / 0.7694 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002505/0.4312, allocations: 1.71 MB / 0.7711 GB, free: 15.07 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.4313, allocations: 7.938 kB / 0.7711 GB, free: 15.06 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00099/0.4323, allocations: 334.8 kB / 0.7714 GB, free: 14.73 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004072/0.4327, allocations: 215 kB / 0.7716 GB, free: 14.52 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003768/0.4331, allocations: 179.5 kB / 0.7718 GB, free: 14.35 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003124/0.4335, allocations: 319 kB / 0.7721 GB, free: 14.04 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003689/0.4338, allocations: 236.7 kB / 0.7723 GB, free: 13.8 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.434, allocations: 139.6 kB / 0.7724 GB, free: 13.66 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000287/0.4343, allocations: 159.5 kB / 0.7726 GB, free: 13.51 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.624e-05/0.4344, allocations: 24 kB / 0.7726 GB, free: 13.48 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003457/0.4347, allocations: 247.5 kB / 0.7728 GB, free: 13.24 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.4348, allocations: 99.78 kB / 0.7729 GB, free: 13.14 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.435, allocations: 123.4 kB / 0.7731 GB, free: 13.02 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004567/0.4354, allocations: 421.3 kB / 0.7735 GB, free: 12.61 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.4354, allocations: 0 / 0.7735 GB, free: 12.61 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4355, allocations: 0 / 0.7735 GB, free: 12.61 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.348e-06/0.4355, allocations: 0 / 0.7735 GB, free: 12.61 MB / 0.545 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.0008633/0.4363, allocations: 0.5497 MB / 0.774 GB, free: 12.02 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.4364, allocations: 8.031 kB / 0.774 GB, free: 12.01 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007054/0.4371, allocations: 96.53 kB / 0.7741 GB, free: 11.91 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.4374, allocations: 259.9 kB / 0.7743 GB, free: 11.62 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.4374, allocations: 12.81 kB / 0.7744 GB, free: 11.61 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.856e-05/0.4375, allocations: 32.45 kB / 0.7744 GB, free: 11.58 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005543/0.4381, allocations: 377.1 kB / 0.7747 GB, free: 11.19 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.4381, allocations: 4 kB / 0.7747 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.4382, allocations: 8 kB / 0.7748 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000101/0.4383, allocations: 28.42 kB / 0.7748 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004689/0.4387, allocations: 309.5 kB / 0.7751 GB, free: 10.84 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001697/0.4404, allocations: 1.514 MB / 0.7766 GB, free: 9.18 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004097/0.4409, allocations: 234.4 kB / 0.7768 GB, free: 8.941 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.441, allocations: 116.8 kB / 0.7769 GB, free: 8.824 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/0.4412, allocations: 85.09 kB / 0.777 GB, free: 8.723 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.4412, allocations: 42.55 kB / 0.777 GB, free: 8.672 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.4412, allocations: 3.938 kB / 0.777 GB, free: 8.668 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001178/0.4424, allocations: 0.796 MB / 0.7778 GB, free: 7.824 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.4424, allocations: 55.41 kB / 0.7778 GB, free: 7.758 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.4426, allocations: 199.6 kB / 0.778 GB, free: 7.555 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.4427, allocations: 25.7 kB / 0.7781 GB, free: 7.523 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.588e-05/0.4428, allocations: 163.9 kB / 0.7782 GB, free: 7.359 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.901e-05/0.4428, allocations: 67.02 kB / 0.7783 GB, free: 7.293 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.113e-05/0.4429, allocations: 57.59 kB / 0.7783 GB, free: 7.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.443, allocations: 330.8 kB / 0.7786 GB, free: 6.898 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.4432, allocations: 123.9 kB / 0.7788 GB, free: 6.777 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.4434, allocations: 167 kB / 0.7789 GB, free: 6.594 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.4438, allocations: 301 kB / 0.7792 GB, free: 6.281 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4438, allocations: 4 kB / 0.7792 GB, free: 6.277 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007538/0.4446, allocations: 417.3 kB / 0.7796 GB, free: 5.863 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.4446, allocations: 12 kB / 0.7796 GB, free: 5.852 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.4446, allocations: 0 / 0.7796 GB, free: 5.852 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003893/0.445, allocations: 96.77 kB / 0.7797 GB, free: 5.754 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.4453, allocations: 55.89 kB / 0.7798 GB, free: 5.699 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/0.4471, allocations: 1.875 MB / 0.7816 GB, free: 3.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.4473, allocations: 19.95 kB / 0.7816 GB, free: 3.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.4474, allocations: 12 kB / 0.7816 GB, free: 3.648 MB / 0.545 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.0001375/0.4475, allocations: 153.8 kB / 0.7818 GB, free: 3.488 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.881e-05/0.4476, allocations: 15.81 kB / 0.7818 GB, free: 3.473 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004783/0.448, allocations: 303.6 kB / 0.7821 GB, free: 3.172 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.4481, allocations: 4 kB / 0.7821 GB, free: 3.168 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.4481, allocations: 0 / 0.7821 GB, free: 3.168 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.4481, allocations: 3.938 kB / 0.7821 GB, free: 3.164 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008563/0.4489, allocations: 0.7029 MB / 0.7828 GB, free: 2.398 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.449, allocations: 8.047 kB / 0.7828 GB, free: 2.391 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.4492, allocations: 59.89 kB / 0.7828 GB, free: 2.332 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.4493, allocations: 0 / 0.7828 GB, free: 2.332 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.4493, allocations: 11.94 kB / 0.7829 GB, free: 2.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4493, allocations: 3.938 kB / 0.7829 GB, free: 2.316 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.4493, allocations: 4 kB / 0.7829 GB, free: 2.312 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006181/0.4499, allocations: 0.5125 MB / 0.7834 GB, free: 1.777 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.72e-05/0.45, allocations: 120.7 kB / 0.7835 GB, free: 1.641 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.4501, allocations: 4 kB / 0.7835 GB, free: 1.637 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.4502, allocations: 11.98 kB / 0.7835 GB, free: 1.625 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.57e-05/0.4503, allocations: 11.98 kB / 0.7835 GB, free: 1.613 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.4503, allocations: 8 kB / 0.7835 GB, free: 1.605 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001372/0.4505, allocations: 144.1 kB / 0.7837 GB, free: 1.461 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4505, allocations: 0 / 0.7837 GB, free: 1.461 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000331/0.4508, allocations: 64 kB / 0.7837 GB, free: 1.398 MB / 0.545 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.0001357/0.4509, allocations: 115.2 kB / 0.7838 GB, free: 1.273 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006781/0.4516, allocations: 428.1 kB / 0.7842 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4516, allocations: 384 / 0.7842 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.4518, allocations: 127.9 kB / 0.7844 GB, free: 0.7188 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.4522, allocations: 37.34 kB / 0.7844 GB, free: 0.6836 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.4533, allocations: 0.6272 MB / 0.785 GB, free: 24 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.4536, allocations: 0.7675 MB / 0.7857 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001528/0.4538, allocations: 65.89 kB / 0.7858 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.387e-05/0.4539, allocations: 19.44 kB / 0.7858 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of SimCode: time 2e-07/0.4539, allocations: 0 / 0.7858 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of Templates: time 0.005704/0.4596, allocations: 2.83 MB / 0.7886 GB, free: 12.34 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)