Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 91.38 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 223.2 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.656/2.656, allocations: 409.4 MB / 0.684 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004375/0.0004377, allocations: 11.98 kB / 0.8378 GB, free: 6.496 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7246/0.725, allocations: 146.8 MB / 0.9811 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003294/0.7284, allocations: 2.66 MB / 0.9837 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002218/0.7306, allocations: 1.61 MB / 0.9853 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.7307, allocations: 7.938 kB / 0.9853 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.7309, allocations: 35.7 kB / 0.9854 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003868/0.7313, allocations: 163.3 kB / 0.9855 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003381/0.7317, allocations: 135.7 kB / 0.9856 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004681/0.7321, allocations: 374.8 kB / 0.986 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008123/0.733, allocations: 0.4954 MB / 0.9865 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.7331, allocations: 107.6 kB / 0.9866 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002654/0.7334, allocations: 143.5 kB / 0.9867 GB, free: 500 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.7334, allocations: 16 kB / 0.9867 GB, free: 484 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000257/0.7337, allocations: 147.8 kB / 0.9869 GB, free: 336 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.7338, allocations: 83.78 kB / 0.987 GB, free: 252 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.338e-05/0.7339, allocations: 65.58 kB / 0.987 GB, free: 180 kB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003663/0.7342, allocations: 313.5 kB / 0.9873 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 7.034e-06/0.7343, allocations: 4 kB / 0.9873 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7343, allocations: 0 / 0.9873 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.7343, allocations: 0 / 0.9873 GB, free: 15.87 MB / 0.7481 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.0009171/0.7352, allocations: 0.5029 MB / 0.9878 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.7353, allocations: 8.031 kB / 0.9878 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.202e-05/0.7354, allocations: 62.53 kB / 0.9879 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007723/0.7361, allocations: 91.61 kB / 0.988 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.7365, allocations: 254.6 kB / 0.9882 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.7365, allocations: 16.44 kB / 0.9882 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.7366, allocations: 27.89 kB / 0.9883 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/0.7373, allocations: 373 kB / 0.9886 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.7373, allocations: 0 / 0.9886 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.7373, allocations: 15.94 kB / 0.9886 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001017/0.7374, allocations: 28.36 kB / 0.9887 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004771/0.7379, allocations: 305.5 kB / 0.9889 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/0.7397, allocations: 1.537 MB / 0.9904 GB, free: 12.4 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004043/0.7401, allocations: 231.6 kB / 0.9907 GB, free: 12.16 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.7403, allocations: 116.8 kB / 0.9908 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001313/0.7404, allocations: 89.09 kB / 0.9909 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.7404, allocations: 38.56 kB / 0.9909 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=18): time 1.393e-06/0.7404, allocations: 0 / 0.9909 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19): time 0.001299/0.7417, allocations: 0.7864 MB / 0.9917 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.7418, allocations: 51.41 kB / 0.9917 GB, free: 11 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.742, allocations: 191.9 kB / 0.9919 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.742, allocations: 29.7 kB / 0.9919 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.7422, allocations: 167.9 kB / 0.9921 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.073e-05/0.7422, allocations: 63.02 kB / 0.9922 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.652e-05/0.7422, allocations: 4 kB / 0.9922 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.7424, allocations: 330.8 kB / 0.9925 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.7425, allocations: 111.9 kB / 0.9926 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.7427, allocations: 178.1 kB / 0.9927 GB, free: 9.891 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001906/0.7429, allocations: 133.5 kB / 0.9929 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.7429, allocations: 0 / 0.9929 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007054/0.7436, allocations: 419.9 kB / 0.9933 GB, free: 9.344 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.7437, allocations: 4 kB / 0.9933 GB, free: 9.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.7437, allocations: 4 kB / 0.9933 GB, free: 9.336 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004018/0.7441, allocations: 92.89 kB / 0.9934 GB, free: 9.242 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.7444, allocations: 63.89 kB / 0.9934 GB, free: 9.18 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.7462, allocations: 1.73 MB / 0.9951 GB, free: 7.316 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00019/0.7464, allocations: 23.92 kB / 0.9951 GB, free: 7.293 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.7464, allocations: 8 kB / 0.9952 GB, free: 7.285 MB / 0.7481 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.0001593/0.7466, allocations: 161.7 kB / 0.9953 GB, free: 7.117 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.374e-05/0.7466, allocations: 19.8 kB / 0.9953 GB, free: 7.098 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004678/0.7471, allocations: 301.2 kB / 0.9956 GB, free: 6.805 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.7471, allocations: 4 kB / 0.9956 GB, free: 6.801 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.7471, allocations: 3.938 kB / 0.9956 GB, free: 6.797 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.7471, allocations: 0 / 0.9956 GB, free: 6.797 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000922/0.7481, allocations: 0.704 MB / 0.9963 GB, free: 6.031 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.7481, allocations: 8 kB / 0.9963 GB, free: 6.023 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.7484, allocations: 55.95 kB / 0.9964 GB, free: 5.969 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.7484, allocations: 0 / 0.9964 GB, free: 5.969 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.7484, allocations: 8 kB / 0.9964 GB, free: 5.961 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.7484, allocations: 3.938 kB / 0.9964 GB, free: 5.957 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.7484, allocations: 4 kB / 0.9964 GB, free: 5.953 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005678/0.749, allocations: 0.5205 MB / 0.9969 GB, free: 5.41 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.7491, allocations: 112.9 kB / 0.997 GB, free: 5.281 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.7492, allocations: 7.984 kB / 0.997 GB, free: 5.273 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.7493, allocations: 11.98 kB / 0.997 GB, free: 5.262 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.7494, allocations: 11.98 kB / 0.997 GB, free: 5.25 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.7494, allocations: 8 kB / 0.997 GB, free: 5.242 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001235/0.7495, allocations: 144 kB / 0.9972 GB, free: 5.098 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.405e-06/0.7495, allocations: 0 / 0.9972 GB, free: 5.098 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003709/0.7499, allocations: 71.94 kB / 0.9972 GB, free: 5.027 MB / 0.7481 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.000963/0.7509, allocations: 1.057 MB / 0.9983 GB, free: 3.941 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006563/0.7515, allocations: 416.2 kB / 0.9987 GB, free: 3.523 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.7516, allocations: 0 / 0.9987 GB, free: 3.523 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.7517, allocations: 119.8 kB / 0.9988 GB, free: 3.406 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.7521, allocations: 42.92 kB / 0.9988 GB, free: 3.367 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.7546, allocations: 1.681 MB / 1 GB, free: 1.609 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.7549, allocations: 0.7716 MB / 1.001 GB, free: 0.8125 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001705/0.7551, allocations: 69.83 kB / 1.001 GB, free: 0.7422 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.7552, allocations: 67.42 kB / 1.001 GB, free: 0.6797 MB / 0.7481 GB Notification: Performance of SimCode: time 2.61e-07/0.7552, allocations: 0 / 1.001 GB, free: 0.6797 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01583/0.771, allocations: 4.662 MB / 1.006 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001974/0.7713, allocations: 230.6 kB / 1.006 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.733, allocations: 4 kB / 1.006 GB, free: 12 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat