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.68/2.68, allocations: 287.3 MB / 302.3 MB, free: 8.328 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.001653/0.001653, allocations: 187.5 kB / 370.8 MB, free: 10.86 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.17/2.17, allocations: 205.4 MB / 0.6295 GB, free: 10.58 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.001161/0.001161, allocations: 94 kB / 0.7428 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004847/0.0004848, allocations: 12.22 kB / 0.8657 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2119, allocations: 115.3 MB / 0.9783 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004116/0.216, allocations: 2.606 MB / 0.9808 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003256/0.2194, allocations: 1.58 MB / 0.9824 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002055/0.2196, allocations: 7.938 kB / 0.9824 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.2198, allocations: 35.77 kB / 0.9824 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000618/0.2205, allocations: 147.4 kB / 0.9826 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006217/0.2211, allocations: 135.7 kB / 0.9827 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.2215, allocations: 179.6 kB / 0.9829 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.2227, allocations: 499.5 kB / 0.9833 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.2229, allocations: 91.67 kB / 0.9834 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003043/0.2232, allocations: 103.6 kB / 0.9835 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.984e-05/0.2233, allocations: 12 kB / 0.9835 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004256/0.2237, allocations: 135.8 kB / 0.9837 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.2238, allocations: 83.78 kB / 0.9837 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.624e-05/0.2239, allocations: 65.58 kB / 0.9838 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000488/0.2244, allocations: 319.2 kB / 0.9841 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2244, allocations: 0 / 0.9841 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.275e-06/0.2244, allocations: 0 / 0.9841 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.2245, allocations: 0 / 0.9841 GB, free: 22.25 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.001038/0.2255, allocations: 0.5028 MB / 0.9846 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.2256, allocations: 16.02 kB / 0.9846 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.387e-05/0.2257, allocations: 54.55 kB / 0.9847 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/0.2268, allocations: 111.5 kB / 0.9848 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004107/0.2273, allocations: 256.7 kB / 0.985 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.2273, allocations: 16.44 kB / 0.985 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.2274, allocations: 24 kB / 0.9851 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007622/0.2282, allocations: 373 kB / 0.9854 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.2283, allocations: 3.953 kB / 0.9854 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.2283, allocations: 11.98 kB / 0.9854 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001577/0.2285, allocations: 28.42 kB / 0.9855 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006996/0.2292, allocations: 305.5 kB / 0.9858 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.2315, allocations: 1.533 MB / 0.9873 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006303/0.2322, allocations: 226.5 kB / 0.9875 GB, free: 18.53 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001568/0.2324, allocations: 85.09 kB / 0.9875 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.2324, allocations: 34.56 kB / 0.9876 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=18): time 2.404e-06/0.2325, allocations: 4 kB / 0.9876 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19): time 0.001772/0.2342, allocations: 0.7927 MB / 0.9884 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.2343, allocations: 55.34 kB / 0.9884 GB, free: 17.47 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.2345, allocations: 198.5 kB / 0.9886 GB, free: 17.27 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.2346, allocations: 29.7 kB / 0.9886 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.634e-05/0.2347, allocations: 163.8 kB / 0.9888 GB, free: 17.07 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.045e-05/0.2347, allocations: 70.98 kB / 0.9889 GB, free: 17 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.2348, allocations: 4 kB / 0.9889 GB, free: 17 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.124e-05/0.2349, allocations: 334.8 kB / 0.9892 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.2351, allocations: 107.9 kB / 0.9893 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.2354, allocations: 163 kB / 0.9894 GB, free: 16.38 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.2358, allocations: 141.2 kB / 0.9896 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2358, allocations: 0 / 0.9896 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001132/0.2369, allocations: 417.8 kB / 0.99 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.237, allocations: 4 kB / 0.99 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.237, allocations: 16.06 kB / 0.99 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006367/0.2376, allocations: 92.77 kB / 0.9901 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004671/0.2381, allocations: 51.95 kB / 0.9901 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002372/0.2405, allocations: 1.769 MB / 0.9919 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004023/0.241, allocations: 24.08 kB / 0.9919 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.21e-05/0.241, allocations: 8 kB / 0.9919 GB, free: 13.73 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.0002071/0.2412, allocations: 153.8 kB / 0.992 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.245e-05/0.2413, allocations: 19.77 kB / 0.992 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007227/0.242, allocations: 305.2 kB / 0.9923 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.242, allocations: 4 kB / 0.9923 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.2421, allocations: 0 / 0.9923 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.2421, allocations: 0 / 0.9923 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/0.2433, allocations: 0.7048 MB / 0.993 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2433, allocations: 0 / 0.993 GB, free: 12.48 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005924/0.2439, allocations: 59.89 kB / 0.9931 GB, free: 12.42 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.186e-05/0.244, allocations: 4 kB / 0.9931 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.861e-05/0.244, allocations: 8.047 kB / 0.9931 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.05e-05/0.2441, allocations: 4 kB / 0.9931 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.2441, allocations: 0 / 0.9931 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009422/0.245, allocations: 0.5357 MB / 0.9936 GB, free: 11.83 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.2452, allocations: 117 kB / 0.9937 GB, free: 11.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.926e-05/0.2453, allocations: 4 kB / 0.9937 GB, free: 11.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003068/0.2456, allocations: 15.98 kB / 0.9938 GB, free: 11.68 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.2457, allocations: 7.984 kB / 0.9938 GB, free: 11.67 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.2457, allocations: 8 kB / 0.9938 GB, free: 11.66 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001645/0.2459, allocations: 148 kB / 0.9939 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.81e-07/0.2459, allocations: 0 / 0.9939 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005532/0.2464, allocations: 64 kB / 0.994 GB, free: 11.46 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.00124/0.2477, allocations: 1.226 MB / 0.9952 GB, free: 10.2 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001084/0.2488, allocations: 438.2 kB / 0.9956 GB, free: 9.754 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.2489, allocations: 0 / 0.9956 GB, free: 9.754 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002566/0.2491, allocations: 119.9 kB / 0.9957 GB, free: 9.637 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004383/0.2496, allocations: 28.67 kB / 0.9957 GB, free: 9.609 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003994/0.2536, allocations: 2.588 MB / 0.9983 GB, free: 6.93 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/0.2539, allocations: 0.7792 MB / 0.999 GB, free: 6.125 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000328/0.2543, allocations: 57.91 kB / 0.9991 GB, free: 6.07 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.2545, allocations: 59.42 kB / 0.9991 GB, free: 6.016 MB / 0.6198 GB Notification: Performance of SimCode: time 1.262e-06/0.2545, allocations: 4 kB / 0.9991 GB, free: 6.012 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.2873, allocations: 4.657 MB / 1.004 GB, free: 1.57 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.2876, allocations: 229.8 kB / 1.004 GB, free: 1.328 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.607/2.894, allocations: 0 / 1.004 GB, free: 1.328 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)