Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/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.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_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.001152/0.001152, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001474/0.001474, allocations: 168.7 kB / 15.95 MB, free: 204 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.44/1.44, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.586/2.586, allocations: 409.4 MB / 0.684 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.000357, allocations: 8 kB / 0.8378 GB, free: 6.551 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7233/0.7237, allocations: 146.8 MB / 0.9811 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003083/0.7268, allocations: 2.137 MB / 0.9832 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001245/0.7281, allocations: 0.7249 MB / 0.9839 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.7282, allocations: 0 / 0.9839 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001578/0.7284, allocations: 27.78 kB / 0.984 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.7287, allocations: 75.7 kB / 0.984 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000313/0.729, allocations: 95.75 kB / 0.9841 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002669/0.7293, allocations: 231.3 kB / 0.9843 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002862/0.7296, allocations: 167.2 kB / 0.9845 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.668e-05/0.7297, allocations: 63.77 kB / 0.9846 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.7299, allocations: 87.66 kB / 0.9846 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.251e-05/0.73, allocations: 8 kB / 0.9847 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.7301, allocations: 51.89 kB / 0.9847 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.997e-05/0.7302, allocations: 55.81 kB / 0.9848 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.395e-05/0.7303, allocations: 49.64 kB / 0.9848 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.7305, allocations: 165.8 kB / 0.985 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.7305, allocations: 0 / 0.985 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.006e-06/0.7305, allocations: 7.938 kB / 0.985 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.7305, allocations: 0 / 0.985 GB, free: 2.32 MB / 0.7325 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.0006206/0.7312, allocations: 419.2 kB / 0.9854 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.7312, allocations: 8.031 kB / 0.9854 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.847e-05/0.7313, allocations: 54.53 kB / 0.9854 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003422/0.7316, allocations: 47.77 kB / 0.9855 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.7319, allocations: 214.8 kB / 0.9857 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.7319, allocations: 8.281 kB / 0.9857 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.461e-05/0.7319, allocations: 11.95 kB / 0.9857 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003582/0.7323, allocations: 230.9 kB / 0.9859 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.7323, allocations: 0 / 0.9859 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.7323, allocations: 8 kB / 0.9859 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.948e-05/0.7324, allocations: 16.27 kB / 0.9859 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002157/0.7326, allocations: 144.7 kB / 0.9861 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.7336, allocations: 1.131 MB / 0.9872 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 8.047e-05/0.7337, allocations: 46.5 kB / 0.9872 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.408e-05/0.7338, allocations: 20.94 kB / 0.9872 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.7338, allocations: 0 / 0.9872 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.7338, allocations: 38.5 kB / 0.9873 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.7338, allocations: 0 / 0.9873 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of matching and sorting (n=4): time 0.0001975/0.734, allocations: 81.56 kB / 0.9874 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.505e-05/0.7341, allocations: 55.34 kB / 0.9874 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.7343, allocations: 175 kB / 0.9876 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.7343, allocations: 25.7 kB / 0.9876 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 8.81e-05/0.7344, allocations: 143.3 kB / 0.9877 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 1.17e-05/0.7344, allocations: 7.906 kB / 0.9878 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.241e-06/0.7344, allocations: 8 kB / 0.9878 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.7346, allocations: 318.8 kB / 0.9881 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.034e-05/0.7346, allocations: 19.98 kB / 0.9881 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.586e-05/0.7347, allocations: 81.44 kB / 0.9882 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.627e-05/0.7348, allocations: 43.92 kB / 0.9882 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.7348, allocations: 0 / 0.9882 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000199/0.735, allocations: 133.4 kB / 0.9883 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.7351, allocations: 161.8 kB / 0.9885 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.7351, allocations: 4 kB / 0.9885 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.7352, allocations: 7.953 kB / 0.9885 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.7353, allocations: 28 kB / 0.9885 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.7353, allocations: 7.922 kB / 0.9885 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.227e-05/0.7354, allocations: 23.69 kB / 0.9886 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.7354, allocations: 4 kB / 0.9886 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.264e-06/0.7354, allocations: 6.031 kB / 0.9886 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001424/0.7355, allocations: 92 kB / 0.9886 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.7356, allocations: 8.031 kB / 0.9887 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.318e-06/0.7356, allocations: 4 kB / 0.9887 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.307e-05/0.7356, allocations: 27.98 kB / 0.9887 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.7357, allocations: 7.938 kB / 0.9887 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.678e-05/0.7357, allocations: 15.84 kB / 0.9887 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.7357, allocations: 4 kB / 0.9887 GB, free: 14.09 MB / 0.7481 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.0001285/0.7359, allocations: 217 kB / 0.9889 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.216e-05/0.7359, allocations: 15.89 kB / 0.9889 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.7359, allocations: 8.938 kB / 0.9889 GB, free: 13.84 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.736, allocations: 11.94 kB / 0.989 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.736, allocations: 0 / 0.989 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.736, allocations: 0 / 0.989 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004095/0.7364, allocations: 473.1 kB / 0.9894 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.7364, allocations: 0 / 0.9894 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.212e-05/0.7364, allocations: 8.125 kB / 0.9894 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.7364, allocations: 7.984 kB / 0.9894 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.7365, allocations: 0 / 0.9894 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.7365, allocations: 4 kB / 0.9894 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7365, allocations: 0 / 0.9894 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.7366, allocations: 119.4 kB / 0.9895 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.407e-05/0.7367, allocations: 93 kB / 0.9896 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.7367, allocations: 4 kB / 0.9896 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.246e-05/0.7367, allocations: 0 / 0.9896 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.608e-05/0.7367, allocations: 3.953 kB / 0.9896 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.7368, allocations: 4 kB / 0.9896 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.684e-05/0.7368, allocations: 132.9 kB / 0.9898 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7369, allocations: 0 / 0.9898 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003328/0.7372, allocations: 51.84 kB / 0.9898 GB, free: 12.83 MB / 0.7481 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.0003605/0.7376, allocations: 0.6386 MB / 0.9904 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001919/0.7378, allocations: 115.8 kB / 0.9906 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.7378, allocations: 0 / 0.9906 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.74e-05/0.7378, allocations: 23.92 kB / 0.9906 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.7381, allocations: 17.48 kB / 0.9906 GB, free: 12 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.7391, allocations: 0.8115 MB / 0.9914 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.7394, allocations: 0.7241 MB / 0.9921 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.547e-05/0.7395, allocations: 32.56 kB / 0.9921 GB, free: 10.31 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.572e-05/0.7396, allocations: 35.42 kB / 0.9922 GB, free: 10.28 MB / 0.7481 GB Notification: Performance of SimCode: time 2.71e-07/0.7396, allocations: 0 / 0.9922 GB, free: 10.28 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01268/0.7523, allocations: 2.155 MB / 0.9943 GB, free: 8.281 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.7525, allocations: 199.4 kB / 0.9944 GB, free: 8.043 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.538, allocations: 0 / 0.9944 GB, free: 8.043 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat does not exist to compare? outputFormat=mat