Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.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: "" <> buildModelFMU(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 193.2 kB / 16.53 MB, free: 6.664 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.322/1.322, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002403/0.002403, allocations: 278.7 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9378/0.9378, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 98.19 kB / 0.5953 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1337, allocations: 86.98 MB / 0.6803 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003852/0.1375, allocations: 2.492 MB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1388, allocations: 0.7728 MB / 0.6835 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.1389, allocations: 4.594 kB / 0.6835 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.1401, allocations: 0.5399 MB / 0.684 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.1403, allocations: 103.5 kB / 0.6841 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.1406, allocations: 111.7 kB / 0.6842 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002145/0.1408, allocations: 191.4 kB / 0.6844 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003212/0.1412, allocations: 174.1 kB / 0.6846 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.452e-05/0.1413, allocations: 83.69 kB / 0.6846 GB, free: 12.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.1415, allocations: 91.66 kB / 0.6847 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.1415, allocations: 12 kB / 0.6847 GB, free: 12.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000185/0.1417, allocations: 107.8 kB / 0.6848 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.814e-05/0.1418, allocations: 51.89 kB / 0.6849 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.647e-05/0.1419, allocations: 75.59 kB / 0.685 GB, free: 11.81 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.1421, allocations: 223.3 kB / 0.6852 GB, free: 11.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1421, allocations: 0 / 0.6852 GB, free: 11.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1421, allocations: 4 kB / 0.6852 GB, free: 11.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1422, allocations: 4 kB / 0.6852 GB, free: 11.58 MB / 494.1 MB 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.0005488/0.1427, allocations: 439.3 kB / 0.6856 GB, free: 11.1 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.1428, allocations: 8.031 kB / 0.6856 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.53e-05/0.1428, allocations: 50.73 kB / 0.6857 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003508/0.1432, allocations: 48.7 kB / 0.6857 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.1434, allocations: 212.1 kB / 0.6859 GB, free: 10.74 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.1434, allocations: 8.656 kB / 0.6859 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.1434, allocations: 16.38 kB / 0.6859 GB, free: 10.72 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003309/0.1438, allocations: 231 kB / 0.6862 GB, free: 10.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.1438, allocations: 0 / 0.6862 GB, free: 10.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.1438, allocations: 4 kB / 0.6862 GB, free: 10.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.279e-05/0.1439, allocations: 20.27 kB / 0.6862 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.1441, allocations: 144.7 kB / 0.6863 GB, free: 10.31 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.1452, allocations: 1.131 MB / 0.6874 GB, free: 9.047 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.542e-05/0.1453, allocations: 38.56 kB / 0.6875 GB, free: 9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.573e-05/0.1453, allocations: 20.8 kB / 0.6875 GB, free: 8.977 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.732e-05/0.1453, allocations: 4.078 kB / 0.6875 GB, free: 8.973 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.1454, allocations: 34.5 kB / 0.6875 GB, free: 8.93 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.423e-06/0.1454, allocations: 3.938 kB / 0.6875 GB, free: 8.926 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002124/0.1456, allocations: 81.52 kB / 0.6876 GB, free: 8.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.1456, allocations: 55.41 kB / 0.6876 GB, free: 8.773 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.1458, allocations: 178.4 kB / 0.6878 GB, free: 8.594 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.1458, allocations: 25.7 kB / 0.6878 GB, free: 8.562 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.898e-05/0.1459, allocations: 143.4 kB / 0.688 GB, free: 8.418 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.274e-05/0.1459, allocations: 11.81 kB / 0.688 GB, free: 8.406 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.92e-05/0.146, allocations: 33.7 kB / 0.688 GB, free: 8.367 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1461, allocations: 318.8 kB / 0.6883 GB, free: 8.047 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.024e-05/0.1461, allocations: 36.8 kB / 0.6884 GB, free: 8.008 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.852e-05/0.1462, allocations: 85.42 kB / 0.6884 GB, free: 7.891 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.1463, allocations: 125.3 kB / 0.6886 GB, free: 7.734 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.1464, allocations: 0 / 0.6886 GB, free: 7.734 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001996/0.1466, allocations: 133.3 kB / 0.6887 GB, free: 7.598 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.1466, allocations: 8 kB / 0.6887 GB, free: 7.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.1466, allocations: 4 kB / 0.6887 GB, free: 7.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.1466, allocations: 4.25 kB / 0.6887 GB, free: 7.582 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.1467, allocations: 31.92 kB / 0.6887 GB, free: 7.551 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.1467, allocations: 4 kB / 0.6887 GB, free: 7.547 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.099e-05/0.1468, allocations: 15.84 kB / 0.6888 GB, free: 7.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.1468, allocations: 8 kB / 0.6888 GB, free: 7.523 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.579e-05/0.1469, allocations: 120.8 kB / 0.6889 GB, free: 7.402 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.759e-05/0.147, allocations: 88.31 kB / 0.689 GB, free: 7.285 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000118/0.1471, allocations: 129.2 kB / 0.6891 GB, free: 7.125 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.423e-06/0.1471, allocations: 0 / 0.6891 GB, free: 7.125 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001931/0.1473, allocations: 141.4 kB / 0.6892 GB, free: 6.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.618e-06/0.1474, allocations: 8 kB / 0.6892 GB, free: 6.973 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1474, allocations: 4 kB / 0.6892 GB, free: 6.969 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.268e-06/0.1474, allocations: 4 kB / 0.6892 GB, free: 6.965 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.351e-05/0.1475, allocations: 23.94 kB / 0.6893 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.1475, allocations: 15.86 kB / 0.6893 GB, free: 6.926 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.934e-05/0.1475, allocations: 7.938 kB / 0.6893 GB, free: 6.918 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.1476, allocations: 8 kB / 0.6893 GB, free: 6.91 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.465e-05/0.1476, allocations: 189 kB / 0.6895 GB, free: 6.719 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.1477, allocations: 7.906 kB / 0.6895 GB, free: 6.711 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.1477, allocations: 16.88 kB / 0.6895 GB, free: 6.691 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1477, allocations: 0 / 0.6895 GB, free: 6.691 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1477, allocations: 0 / 0.6895 GB, free: 6.691 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1477, allocations: 7.984 kB / 0.6895 GB, free: 6.684 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.1481, allocations: 477 kB / 0.69 GB, free: 6.148 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1481, allocations: 0 / 0.69 GB, free: 6.148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.27e-05/0.1482, allocations: 11.94 kB / 0.69 GB, free: 6.137 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-06/0.1482, allocations: 0 / 0.69 GB, free: 6.137 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.1482, allocations: 4 kB / 0.69 GB, free: 6.133 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.1482, allocations: 4 kB / 0.69 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1482, allocations: 0 / 0.69 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.1483, allocations: 119.6 kB / 0.6901 GB, free: 5.984 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.956e-05/0.1484, allocations: 93.19 kB / 0.6902 GB, free: 5.875 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.1484, allocations: 0 / 0.6902 GB, free: 5.875 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.379e-05/0.1484, allocations: 4 kB / 0.6902 GB, free: 5.871 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.839e-05/0.1484, allocations: 11.97 kB / 0.6902 GB, free: 5.859 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-06/0.1485, allocations: 4 kB / 0.6902 GB, free: 5.855 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.211e-05/0.1485, allocations: 121.1 kB / 0.6903 GB, free: 5.738 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1486, allocations: 4 kB / 0.6903 GB, free: 5.734 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003303/0.1489, allocations: 51.84 kB / 0.6904 GB, free: 5.684 MB / 494.1 MB 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 (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.0003169/0.1492, allocations: 0.6539 MB / 0.691 GB, free: 4.988 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001876/0.1494, allocations: 107.7 kB / 0.6911 GB, free: 4.883 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.1494, allocations: 1.25 kB / 0.6911 GB, free: 4.883 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.495e-05/0.1494, allocations: 11.94 kB / 0.6911 GB, free: 4.871 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.1497, allocations: 28.23 kB / 0.6911 GB, free: 4.844 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.1513, allocations: 1.745 MB / 0.6928 GB, free: 2.941 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.1515, allocations: 0.7241 MB / 0.6936 GB, free: 2.191 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.41e-05/0.1516, allocations: 24.61 kB / 0.6936 GB, free: 2.168 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.355e-05/0.1517, allocations: 35.42 kB / 0.6936 GB, free: 2.133 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1517, allocations: 0 / 0.6936 GB, free: 2.133 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5865/0.7382, allocations: 2.375 MB / 0.6959 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.897/9.635, allocations: 10.66 kB / 0.6959 GB, free: 15.88 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)