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 2.735/2.735, allocations: 287.5 MB / 302.4 MB, free: 8.301 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.00127/0.001269, allocations: 180.5 kB / 371 MB, free: 10.85 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.058/2.058, allocations: 205.4 MB / 0.6297 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.0008798/0.0008793, allocations: 82.42 kB / 0.743 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006811/0.0006815, allocations: 11.97 kB / 0.8659 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.221, allocations: 115.3 MB / 0.9784 GB, free: 28.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003307/0.2244, allocations: 2.127 MB / 0.9805 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001662/0.2261, allocations: 0.7288 MB / 0.9812 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.2263, allocations: 4 kB / 0.9812 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001779/0.2265, allocations: 23.78 kB / 0.9813 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004016/0.2269, allocations: 87.62 kB / 0.9813 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004318/0.2273, allocations: 83.83 kB / 0.9814 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003343/0.2277, allocations: 231.3 kB / 0.9816 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003025/0.228, allocations: 171.2 kB / 0.9818 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.2281, allocations: 63.77 kB / 0.9819 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002552/0.2284, allocations: 95.66 kB / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.106e-05/0.2284, allocations: 4 kB / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.2287, allocations: 59.89 kB / 0.982 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.241e-05/0.2287, allocations: 39.89 kB / 0.9821 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.343e-05/0.2288, allocations: 49.64 kB / 0.9821 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.2291, allocations: 163.9 kB / 0.9823 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.2291, allocations: 7.938 kB / 0.9823 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.214e-06/0.2291, allocations: 0 / 0.9823 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.2291, allocations: 0 / 0.9823 GB, free: 24.26 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.0006549/0.2298, allocations: 427 kB / 0.9827 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.2298, allocations: 12.02 kB / 0.9827 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.708e-05/0.2299, allocations: 50.55 kB / 0.9827 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004826/0.2304, allocations: 47.73 kB / 0.9828 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.2306, allocations: 206.9 kB / 0.983 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.2307, allocations: 8.281 kB / 0.983 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.2307, allocations: 15.94 kB / 0.983 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004563/0.2312, allocations: 234.7 kB / 0.9832 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2312, allocations: 0 / 0.9832 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.2312, allocations: 0 / 0.9832 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.551e-05/0.2313, allocations: 20.27 kB / 0.9833 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003257/0.2316, allocations: 140.7 kB / 0.9834 GB, free: 23 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.2329, allocations: 1.13 MB / 0.9845 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.954e-05/0.2331, allocations: 54.45 kB / 0.9845 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.733e-05/0.2331, allocations: 16.86 kB / 0.9846 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.2332, allocations: 0 / 0.9846 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.2332, allocations: 34.64 kB / 0.9846 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=4): time 2.044e-06/0.2332, allocations: 0 / 0.9846 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=4): time 0.0002675/0.2335, allocations: 85.42 kB / 0.9847 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.2335, allocations: 51.41 kB / 0.9847 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001726/0.2337, allocations: 172.7 kB / 0.9849 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.2337, allocations: 25.7 kB / 0.9849 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.629e-05/0.2338, allocations: 139.4 kB / 0.985 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.2338, allocations: 23.73 kB / 0.9851 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.2339, allocations: 0 / 0.9851 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.2339, allocations: 322.8 kB / 0.9854 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.466e-05/0.234, allocations: 19.98 kB / 0.9854 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.973e-05/0.2341, allocations: 89.44 kB / 0.9855 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.205e-05/0.2342, allocations: 47.86 kB / 0.9855 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2342, allocations: 0 / 0.9855 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002597/0.2345, allocations: 137.3 kB / 0.9857 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.237e-05/0.2346, allocations: 157.9 kB / 0.9858 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.2346, allocations: 4 kB / 0.9858 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.2346, allocations: 4 kB / 0.9858 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.2348, allocations: 23.98 kB / 0.9858 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.2348, allocations: 7.875 kB / 0.9858 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.235, allocations: 19.84 kB / 0.9859 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.235, allocations: 4 kB / 0.9859 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.953e-06/0.235, allocations: 4 kB / 0.9859 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001931/0.2352, allocations: 99.7 kB / 0.986 GB, free: 20.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2352, allocations: 4 kB / 0.986 GB, free: 20.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.38e-06/0.2352, allocations: 4 kB / 0.986 GB, free: 20.07 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.2354, allocations: 27.94 kB / 0.986 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.443e-06/0.2354, allocations: 7.938 kB / 0.986 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.923e-05/0.2355, allocations: 15.84 kB / 0.986 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.2355, allocations: 4 kB / 0.986 GB, free: 20.02 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.0001304/0.2356, allocations: 214.7 kB / 0.9862 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.299e-05/0.2357, allocations: 15.81 kB / 0.9862 GB, free: 19.78 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.773e-05/0.2357, allocations: 12.92 kB / 0.9863 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2358, allocations: 7.953 kB / 0.9863 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2358, allocations: 4 kB / 0.9863 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2358, allocations: 3.938 kB / 0.9863 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004934/0.2363, allocations: 465.2 kB / 0.9867 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2363, allocations: 3.953 kB / 0.9867 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.881e-05/0.2364, allocations: 8 kB / 0.9867 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.2364, allocations: 0 / 0.9867 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.2364, allocations: 4 kB / 0.9867 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.2364, allocations: 0 / 0.9867 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2364, allocations: 3.938 kB / 0.9867 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001346/0.2366, allocations: 111.7 kB / 0.9868 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.559e-05/0.2366, allocations: 92.88 kB / 0.9869 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.2367, allocations: 11.98 kB / 0.9869 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.947e-05/0.2368, allocations: 0 / 0.9869 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.653e-05/0.2368, allocations: 4 kB / 0.9869 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.2368, allocations: 7.938 kB / 0.987 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001072/0.2369, allocations: 128.1 kB / 0.9871 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2369, allocations: 0 / 0.9871 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004939/0.2374, allocations: 55.78 kB / 0.9871 GB, free: 18.76 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.0003571/0.2378, allocations: 0.6464 MB / 0.9878 GB, free: 18.08 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002827/0.2381, allocations: 112.9 kB / 0.9879 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2381, allocations: 0 / 0.9879 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 4.193e-05/0.2382, allocations: 24.17 kB / 0.9879 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.2385, allocations: 23.98 kB / 0.9879 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.2399, allocations: 0.8103 MB / 0.9887 GB, free: 17.03 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.2401, allocations: 0.7202 MB / 0.9894 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001544/0.2403, allocations: 28.61 kB / 0.9894 GB, free: 16.25 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.987e-05/0.2404, allocations: 31.42 kB / 0.9895 GB, free: 16.22 MB / 0.6198 GB Notification: Performance of SimCode: time 1.152e-06/0.2404, allocations: 4 kB / 0.9895 GB, free: 16.22 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.2659, allocations: 2.154 MB / 0.9916 GB, free: 14.22 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002453/0.2662, allocations: 194.4 kB / 0.9918 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.552/2.818, allocations: 0 / 0.9918 GB, free: 13.98 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)