Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.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.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_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 3.347/3.347, allocations: 287.3 MB / 302.3 MB, free: 8.289 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.002267/0.002267, allocations: 174.3 kB / 370.8 MB, free: 10.87 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.209/2.209, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001237/0.001236, allocations: 99.77 kB / 0.7428 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007354/0.0007359, allocations: 11.75 kB / 0.8657 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.284, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004262/0.2884, allocations: 2.115 MB / 0.9803 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001994/0.2904, allocations: 0.717 MB / 0.981 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.2906, allocations: 4 kB / 0.9811 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.2908, allocations: 23.84 kB / 0.9811 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0003958/0.2913, allocations: 67.81 kB / 0.9811 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005005/0.2918, allocations: 85.27 kB / 0.9812 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.00029/0.2921, allocations: 107.8 kB / 0.9813 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003659/0.2925, allocations: 167.2 kB / 0.9815 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.2926, allocations: 59.77 kB / 0.9815 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.2929, allocations: 47.83 kB / 0.9816 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.526e-05/0.293, allocations: 12 kB / 0.9816 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002443/0.2932, allocations: 55.83 kB / 0.9816 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.665e-05/0.2933, allocations: 43.91 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.407e-05/0.2934, allocations: 45.64 kB / 0.9817 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000361/0.2938, allocations: 167.8 kB / 0.9819 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2938, allocations: 0 / 0.9819 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.575e-06/0.2938, allocations: 0 / 0.9819 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.211e-06/0.2938, allocations: 0 / 0.9819 GB, free: 24.55 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0008027/0.2946, allocations: 431.1 kB / 0.9823 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.61e-05/0.2947, allocations: 16.02 kB / 0.9823 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.462e-05/0.2948, allocations: 46.55 kB / 0.9824 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007688/0.2956, allocations: 59.72 kB / 0.9824 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003236/0.2959, allocations: 206.9 kB / 0.9826 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.296, allocations: 12.28 kB / 0.9826 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.513e-05/0.296, allocations: 8 kB / 0.9826 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006003/0.2966, allocations: 226.8 kB / 0.9829 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.2967, allocations: 3.938 kB / 0.9829 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.2967, allocations: 11.92 kB / 0.9829 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-05/0.2968, allocations: 16.27 kB / 0.9829 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004455/0.2973, allocations: 140.7 kB / 0.983 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.2989, allocations: 1.134 MB / 0.9841 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.2991, allocations: 46.52 kB / 0.9842 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.2992, allocations: 0 / 0.9842 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.2992, allocations: 34.56 kB / 0.9842 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=4): time 2.094e-06/0.2992, allocations: 3.938 kB / 0.9842 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=4): time 0.0003289/0.2995, allocations: 81.52 kB / 0.9843 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.2996, allocations: 51.41 kB / 0.9843 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/0.2999, allocations: 172.7 kB / 0.9845 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.2999, allocations: 25.7 kB / 0.9845 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3, allocations: 139.4 kB / 0.9847 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.3, allocations: 19.73 kB / 0.9847 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.3001, allocations: 4 kB / 0.9847 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.433e-05/0.3002, allocations: 322.8 kB / 0.985 GB, free: 21.06 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.551e-05/0.3003, allocations: 16 kB / 0.985 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.3004, allocations: 89.42 kB / 0.9851 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.3005, allocations: 35.92 kB / 0.9851 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.3005, allocations: 4 kB / 0.9851 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004222/0.301, allocations: 133.3 kB / 0.9853 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003304/0.3013, allocations: 0.9641 MB / 0.9862 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.3014, allocations: 0 / 0.9862 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.967e-05/0.3014, allocations: 8.234 kB / 0.9862 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.3017, allocations: 27.92 kB / 0.9862 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.3017, allocations: 4 kB / 0.9862 GB, free: 19.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.3019, allocations: 11.84 kB / 0.9862 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.302, allocations: 8 kB / 0.9863 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.302, allocations: 4 kB / 0.9863 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003313/0.3023, allocations: 107.9 kB / 0.9864 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3024, allocations: 4 kB / 0.9864 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.3024, allocations: 4 kB / 0.9864 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.3026, allocations: 27.92 kB / 0.9864 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3026, allocations: 0 / 0.9864 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.3028, allocations: 15.84 kB / 0.9864 GB, free: 19.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.3028, allocations: 8 kB / 0.9864 GB, free: 19.48 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (14): * Single equations (assignments): 14 * 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 prepare postOptimizeDAE: time 0.0001814/0.303, allocations: 213 kB / 0.9866 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.579e-05/0.3031, allocations: 11.81 kB / 0.9866 GB, free: 19.25 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.871e-05/0.3031, allocations: 20.98 kB / 0.9867 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.3031, allocations: 0 / 0.9867 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3032, allocations: 3.938 kB / 0.9867 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3032, allocations: 0 / 0.9867 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000684/0.3039, allocations: 473.1 kB / 0.9871 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3039, allocations: 128 / 0.9871 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.788e-05/0.304, allocations: 11.94 kB / 0.9871 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.304, allocations: 4 kB / 0.9871 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.304, allocations: 0 / 0.9871 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/0.3041, allocations: 7.953 kB / 0.9871 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3041, allocations: 4 kB / 0.9871 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002084/0.3043, allocations: 148.7 kB / 0.9873 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.3044, allocations: 88.92 kB / 0.9874 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.912e-05/0.3045, allocations: 7.984 kB / 0.9874 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.713e-05/0.3046, allocations: 4 kB / 0.9874 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.229e-05/0.3046, allocations: 3.938 kB / 0.9874 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.3047, allocations: 4 kB / 0.9874 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001816/0.3049, allocations: 128.2 kB / 0.9875 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.21e-07/0.3049, allocations: 0 / 0.9875 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000825/0.3057, allocations: 55.78 kB / 0.9876 GB, free: 18.18 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (4): * Single equations (assignments): 4 * 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.0005391/0.3063, allocations: 0.8887 MB / 0.9884 GB, free: 17.24 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000368/0.3067, allocations: 104.9 kB / 0.9885 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3067, allocations: 0 / 0.9885 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 5.622e-05/0.3067, allocations: 19.92 kB / 0.9885 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.3071, allocations: 19.95 kB / 0.9886 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.3093, allocations: 2.316 MB / 0.9908 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/0.3096, allocations: 0.7241 MB / 0.9915 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002063/0.3098, allocations: 28.62 kB / 0.9916 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.97e-05/0.3099, allocations: 31.42 kB / 0.9916 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of SimCode: time 1.233e-06/0.31, allocations: 0 / 0.9916 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.3331, allocations: 2.14 MB / 0.9937 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002966/0.3334, allocations: 193 kB / 0.9939 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.39/2.723, allocations: 0 / 0.9939 GB, free: 11.64 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)