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.001257/0.001257, allocations: 105.6 kB / 15.98 MB, free: 6.352 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.001282/0.001281, allocations: 199.1 kB / 16.91 MB, free: 6.184 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.379/1.379, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002442/0.002442, allocations: 295 kB / 291 MB, free: 14.71 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.203/1.203, allocations: 178.6 MB / 0.5076 GB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 95.84 kB / 0.6066 GB, free: 9.641 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1967, allocations: 89.14 MB / 0.6936 GB, free: 428 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004879/0.2016, allocations: 3.111 MB / 0.6967 GB, free: 13.28 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002805/0.2045, allocations: 1.706 MB / 0.6983 GB, free: 11.57 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.2046, allocations: 4 kB / 0.6983 GB, free: 11.56 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009763/0.2056, allocations: 314.9 kB / 0.6986 GB, free: 11.25 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004681/0.206, allocations: 199.2 kB / 0.6988 GB, free: 11.06 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.2065, allocations: 163.7 kB / 0.699 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000367/0.2069, allocations: 319 kB / 0.6993 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004657/0.2073, allocations: 276.9 kB / 0.6996 GB, free: 10.32 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.2075, allocations: 135.5 kB / 0.6997 GB, free: 10.18 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002956/0.2078, allocations: 167.4 kB / 0.6999 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.2079, allocations: 20 kB / 0.6999 GB, free: 10 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000371/0.2083, allocations: 243.5 kB / 0.7001 GB, free: 9.762 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.2084, allocations: 103.8 kB / 0.7002 GB, free: 9.66 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.2085, allocations: 119.4 kB / 0.7003 GB, free: 9.543 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004002/0.2089, allocations: 331.2 kB / 0.7006 GB, free: 9.219 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.209, allocations: 7.938 kB / 0.7006 GB, free: 9.211 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.663e-06/0.209, allocations: 0 / 0.7006 GB, free: 9.211 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.084e-06/0.209, allocations: 0 / 0.7006 GB, free: 9.211 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.0009774/0.21, allocations: 0.542 MB / 0.7012 GB, free: 8.621 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.21, allocations: 11.97 kB / 0.7012 GB, free: 8.609 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007174/0.2107, allocations: 92.55 kB / 0.7013 GB, free: 8.52 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000319/0.2111, allocations: 247.9 kB / 0.7015 GB, free: 8.238 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.2111, allocations: 20.81 kB / 0.7015 GB, free: 8.219 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.2112, allocations: 32.53 kB / 0.7016 GB, free: 8.188 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005934/0.2118, allocations: 373.1 kB / 0.7019 GB, free: 7.801 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.2118, allocations: 3.984 kB / 0.7019 GB, free: 7.797 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.506e-05/0.2119, allocations: 12 kB / 0.7019 GB, free: 7.785 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001078/0.212, allocations: 28.41 kB / 0.702 GB, free: 7.754 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004936/0.2125, allocations: 309.5 kB / 0.7022 GB, free: 7.453 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.2143, allocations: 1.533 MB / 0.7037 GB, free: 5.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004598/0.2148, allocations: 238.3 kB / 0.704 GB, free: 5.527 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.215, allocations: 116.8 kB / 0.7041 GB, free: 5.41 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001551/0.2152, allocations: 89.09 kB / 0.7042 GB, free: 5.305 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.2152, allocations: 34.56 kB / 0.7042 GB, free: 5.262 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.753e-06/0.2152, allocations: 0 / 0.7042 GB, free: 5.262 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001354/0.2166, allocations: 0.7875 MB / 0.705 GB, free: 4.426 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.2166, allocations: 63.34 kB / 0.705 GB, free: 4.352 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.2168, allocations: 199.7 kB / 0.7052 GB, free: 4.148 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.2169, allocations: 25.7 kB / 0.7052 GB, free: 4.117 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.217, allocations: 159.8 kB / 0.7054 GB, free: 3.953 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.158e-05/0.2171, allocations: 71 kB / 0.7055 GB, free: 3.883 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.845e-05/0.2172, allocations: 49.7 kB / 0.7055 GB, free: 3.828 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2173, allocations: 338.8 kB / 0.7058 GB, free: 3.488 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.2175, allocations: 107.9 kB / 0.7059 GB, free: 3.383 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.2177, allocations: 179 kB / 0.7061 GB, free: 3.188 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004205/0.2182, allocations: 304.8 kB / 0.7064 GB, free: 2.871 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2182, allocations: 0 / 0.7064 GB, free: 2.871 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007826/0.2189, allocations: 413.4 kB / 0.7068 GB, free: 2.461 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.219, allocations: 8.188 kB / 0.7068 GB, free: 2.453 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.219, allocations: 4 kB / 0.7068 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004242/0.2194, allocations: 96.75 kB / 0.7069 GB, free: 2.352 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.2197, allocations: 55.91 kB / 0.707 GB, free: 2.297 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.2218, allocations: 1.875 MB / 0.7088 GB, free: 288 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002242/0.222, allocations: 19.95 kB / 0.7088 GB, free: 268 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.2221, allocations: 15.98 kB / 0.7088 GB, free: 252 kB / 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.0001731/0.2223, allocations: 154.5 kB / 0.709 GB, free: 88 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.312e-05/0.2223, allocations: 19.8 kB / 0.709 GB, free: 68 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2963/0.5187, allocations: 297.4 kB / 0.7093 GB, free: 50.89 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.5187, allocations: 2.062 kB / 0.7093 GB, free: 50.89 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.5187, allocations: 2.062 kB / 0.7093 GB, free: 50.89 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.5187, allocations: 5.828 kB / 0.7093 GB, free: 50.89 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008777/0.5196, allocations: 0.6958 MB / 0.71 GB, free: 50.58 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.5196, allocations: 0 / 0.71 GB, free: 50.58 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.5199, allocations: 58.09 kB / 0.71 GB, free: 50.58 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.52, allocations: 4.688 kB / 0.71 GB, free: 50.58 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.52, allocations: 7.406 kB / 0.71 GB, free: 50.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.52, allocations: 2.406 kB / 0.71 GB, free: 50.58 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.52, allocations: 1.031 kB / 0.71 GB, free: 50.58 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005243/0.5205, allocations: 0.5192 MB / 0.7105 GB, free: 50.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.052e-05/0.5206, allocations: 117.5 kB / 0.7106 GB, free: 50.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.5207, allocations: 5.891 kB / 0.7107 GB, free: 50.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.5208, allocations: 15.58 kB / 0.7107 GB, free: 50.34 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.5209, allocations: 16.78 kB / 0.7107 GB, free: 50.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.5209, allocations: 6.406 kB / 0.7107 GB, free: 50.34 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001171/0.521, allocations: 149.4 kB / 0.7108 GB, free: 50.26 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.521, allocations: 2.062 kB / 0.7108 GB, free: 50.26 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003806/0.5214, allocations: 63.66 kB / 0.7109 GB, free: 50.26 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.0001427/0.5216, allocations: 110.8 kB / 0.711 GB, free: 50.17 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007105/0.5223, allocations: 447 kB / 0.7114 GB, free: 50.06 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5223, allocations: 0.9062 kB / 0.7114 GB, free: 50.06 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.5225, allocations: 119.2 kB / 0.7115 GB, free: 50.06 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.5229, allocations: 34.3 kB / 0.7116 GB, free: 50.06 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.5239, allocations: 0.7585 MB / 0.7123 GB, free: 49.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.5241, allocations: 0.7774 MB / 0.7131 GB, free: 49 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.763e-05/0.5242, allocations: 25.69 kB / 0.7131 GB, free: 49 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.5242, allocations: 0 / 0.7131 GB, free: 49 MB / 0.545 GB Notification: Performance of Templates: time 0.004597/0.5288, allocations: 3.6 MB / 0.7166 GB, free: 48.81 MB / 0.545 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)