Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.806/2.806, allocations: 287.5 MB / 302.4 MB, free: 8.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001313/0.001313, allocations: 186.8 kB / 371 MB, free: 10.9 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.375/2.375, allocations: 205.4 MB / 0.6297 GB, free: 10.66 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001002/0.001001, allocations: 95.45 kB / 0.743 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006648/0.000665, allocations: 15.91 kB / 0.8659 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.217, allocations: 115.3 MB / 0.9785 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004003/0.2211, allocations: 2.653 MB / 0.981 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003213/0.2244, allocations: 1.611 MB / 0.9826 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.2246, allocations: 0 / 0.9826 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.2248, allocations: 43.64 kB / 0.9827 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0005883/0.2254, allocations: 159.3 kB / 0.9828 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005704/0.226, allocations: 135.7 kB / 0.9829 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004398/0.2265, allocations: 370.8 kB / 0.9833 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00105/0.2275, allocations: 0.4995 MB / 0.9838 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.2278, allocations: 107.6 kB / 0.9839 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003531/0.2281, allocations: 143.5 kB / 0.984 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.2282, allocations: 12 kB / 0.984 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004733/0.2287, allocations: 143.8 kB / 0.9842 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.2288, allocations: 91.75 kB / 0.9843 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.008e-05/0.2289, allocations: 65.58 kB / 0.9843 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004387/0.2293, allocations: 311.2 kB / 0.9846 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2294, allocations: 4 kB / 0.9846 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.065e-06/0.2294, allocations: 0 / 0.9846 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.2294, allocations: 3.938 kB / 0.9846 GB, free: 21.91 MB / 0.6198 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.0009916/0.2304, allocations: 0.5049 MB / 0.9851 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.2304, allocations: 15.95 kB / 0.9851 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.506e-05/0.2305, allocations: 62.53 kB / 0.9852 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001012/0.2315, allocations: 99.56 kB / 0.9853 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.2319, allocations: 242.7 kB / 0.9855 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.2319, allocations: 20.42 kB / 0.9855 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.2321, allocations: 23.94 kB / 0.9856 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007719/0.2329, allocations: 369 kB / 0.9859 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.2329, allocations: 3.953 kB / 0.9859 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.371e-05/0.233, allocations: 11.98 kB / 0.9859 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000146/0.2331, allocations: 28.42 kB / 0.986 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006709/0.2338, allocations: 305.5 kB / 0.9863 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002208/0.236, allocations: 1.533 MB / 0.9877 GB, free: 18.45 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000643/0.2367, allocations: 226.4 kB / 0.988 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.2369, allocations: 122.8 kB / 0.9881 GB, free: 18.09 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001584/0.2371, allocations: 89.41 kB / 0.9882 GB, free: 17.99 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.2372, allocations: 38.56 kB / 0.9882 GB, free: 17.94 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=18): time 2.615e-06/0.2372, allocations: 0 / 0.9882 GB, free: 17.94 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19): time 0.001632/0.2388, allocations: 0.7888 MB / 0.989 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.2388, allocations: 55.34 kB / 0.989 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.2391, allocations: 198.6 kB / 0.9892 GB, free: 16.83 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.2391, allocations: 29.7 kB / 0.9892 GB, free: 16.8 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.025e-05/0.2392, allocations: 163.8 kB / 0.9894 GB, free: 16.63 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.418e-05/0.2393, allocations: 71 kB / 0.9895 GB, free: 16.56 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.24e-05/0.2393, allocations: 4 kB / 0.9895 GB, free: 16.56 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.434e-05/0.2394, allocations: 330.8 kB / 0.9898 GB, free: 16.23 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.2396, allocations: 111.9 kB / 0.9899 GB, free: 16.12 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.2399, allocations: 170.9 kB / 0.9901 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/0.2403, allocations: 137.3 kB / 0.9902 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2403, allocations: 0 / 0.9902 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001144/0.2414, allocations: 417.9 kB / 0.9906 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.2415, allocations: 8 kB / 0.9906 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2415, allocations: 0 / 0.9906 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006196/0.2421, allocations: 100.8 kB / 0.9907 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004367/0.2426, allocations: 51.91 kB / 0.9907 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002252/0.2448, allocations: 1.738 MB / 0.9924 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.2452, allocations: 15.98 kB / 0.9925 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.148e-05/0.2453, allocations: 12 kB / 0.9925 GB, free: 13.32 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001962/0.2455, allocations: 158.8 kB / 0.9926 GB, free: 13.16 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.873e-05/0.2456, allocations: 15.81 kB / 0.9926 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006685/0.2462, allocations: 305.5 kB / 0.9929 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.341e-06/0.2463, allocations: 4 kB / 0.9929 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.2463, allocations: 0 / 0.9929 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2463, allocations: 0 / 0.9929 GB, free: 12.84 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.2474, allocations: 0.7068 MB / 0.9936 GB, free: 12.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.2474, allocations: 4 kB / 0.9936 GB, free: 12.07 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.248, allocations: 52.02 kB / 0.9937 GB, free: 12.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.615e-06/0.248, allocations: 8 kB / 0.9937 GB, free: 12.01 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.248, allocations: 4 kB / 0.9937 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.2481, allocations: 4 kB / 0.9937 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2481, allocations: 0 / 0.9937 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008684/0.2489, allocations: 0.5089 MB / 0.9942 GB, free: 11.47 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.2491, allocations: 124.9 kB / 0.9943 GB, free: 11.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.837e-05/0.2492, allocations: 4 kB / 0.9943 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00028/0.2494, allocations: 11.98 kB / 0.9943 GB, free: 11.31 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.2495, allocations: 15.97 kB / 0.9943 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.2495, allocations: 12.06 kB / 0.9943 GB, free: 11.29 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001507/0.2497, allocations: 148 kB / 0.9945 GB, free: 11.14 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.31e-07/0.2497, allocations: 0 / 0.9945 GB, free: 11.14 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004762/0.2502, allocations: 64 kB / 0.9945 GB, free: 11.08 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001068/0.2513, allocations: 1.062 MB / 0.9956 GB, free: 9.988 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009682/0.2523, allocations: 430.6 kB / 0.996 GB, free: 9.555 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2523, allocations: 0 / 0.996 GB, free: 9.555 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.2526, allocations: 121.7 kB / 0.9961 GB, free: 9.438 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.2531, allocations: 36.11 kB / 0.9961 GB, free: 9.402 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.2565, allocations: 1.678 MB / 0.9978 GB, free: 7.645 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.2568, allocations: 0.7675 MB / 0.9985 GB, free: 6.852 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003013/0.2571, allocations: 61.89 kB / 0.9986 GB, free: 6.793 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001652/0.2573, allocations: 67.41 kB / 0.9987 GB, free: 6.73 MB / 0.6198 GB Notification: Performance of SimCode: time 1.322e-06/0.2573, allocations: 0 / 0.9987 GB, free: 6.73 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.2895, allocations: 4.682 MB / 1.003 GB, free: 2.266 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002674/0.2899, allocations: 228.4 kB / 1.003 GB, free: 2.027 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.749/3.039, allocations: 3.875 kB / 1.003 GB, free: 2.027 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)