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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.001235/0.001235, allocations: 108 kB / 15.6 MB, free: 132 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.001291/0.001291, allocations: 194.4 kB / 16.53 MB, free: 6.391 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.241/1.241, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.415/2.415, allocations: 461.9 MB / 0.7346 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 68.94 kB / 0.8992 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.229, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003526/0.2325, allocations: 2.499 MB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001174/0.2337, allocations: 0.7906 MB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.608e-05/0.2339, allocations: 7.938 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.2349, allocations: 0.5181 MB / 1.057 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002423/0.2351, allocations: 115.5 kB / 1.057 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002623/0.2354, allocations: 107.7 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.2356, allocations: 191.4 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.2359, allocations: 174.1 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.251e-05/0.236, allocations: 79.7 kB / 1.057 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.2362, allocations: 87.72 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.2362, allocations: 12 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001851/0.2364, allocations: 115.7 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.045e-05/0.2365, allocations: 55.83 kB / 1.058 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.315e-05/0.2366, allocations: 75.64 kB / 1.058 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.2368, allocations: 211.6 kB / 1.058 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2368, allocations: 4 kB / 1.058 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.184e-06/0.2369, allocations: 3.984 kB / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.2369, allocations: 0 / 1.058 GB, free: 3.242 MB / 0.8106 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.0004993/0.2374, allocations: 447.3 kB / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.2374, allocations: 8.625 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.694e-05/0.2375, allocations: 50.73 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003248/0.2378, allocations: 48.7 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.238, allocations: 204.1 kB / 1.059 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.238, allocations: 24.58 kB / 1.059 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.238, allocations: 12.38 kB / 1.059 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.2383, allocations: 219.1 kB / 1.059 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2383, allocations: 4 kB / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.2384, allocations: 8 kB / 1.059 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.971e-05/0.2384, allocations: 20.27 kB / 1.059 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.2386, allocations: 148.6 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008883/0.2395, allocations: 1.142 MB / 1.06 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.087e-05/0.2396, allocations: 42.56 kB / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.015e-05/0.2396, allocations: 20.94 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.014e-05/0.2396, allocations: 3.984 kB / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.2396, allocations: 30.56 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.2397, allocations: 4 kB / 1.06 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0001619/0.2398, allocations: 81.47 kB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.501e-05/0.2399, allocations: 51.41 kB / 1.06 GB, free: 424 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.24, allocations: 171.8 kB / 1.06 GB, free: 244 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.24, allocations: 25.7 kB / 1.06 GB, free: 212 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.2401, allocations: 143.3 kB / 1.061 GB, free: 64 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.115e-05/0.2401, allocations: 15.84 kB / 1.061 GB, free: 48 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.17e-05/0.2401, allocations: 37.55 kB / 1.061 GB, free: 4 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.2402, allocations: 326.8 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.571e-05/0.2403, allocations: 28.84 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.299e-05/0.2404, allocations: 81.44 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.2405, allocations: 125.2 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2405, allocations: 0 / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001721/0.2407, allocations: 133.4 kB / 1.061 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.2407, allocations: 9.406 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2407, allocations: 4 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.2407, allocations: 7.938 kB / 1.061 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.589e-05/0.2408, allocations: 27.92 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.2408, allocations: 4 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.17e-05/0.2409, allocations: 11.84 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.2409, allocations: 11.98 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.43e-05/0.241, allocations: 124.1 kB / 1.062 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.605e-05/0.2411, allocations: 92.5 kB / 1.062 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001082/0.2412, allocations: 125.3 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.052e-06/0.2412, allocations: 3.938 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001675/0.2414, allocations: 137.3 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.662e-06/0.2414, allocations: 4 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2414, allocations: 4 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.948e-06/0.2414, allocations: 4 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.023e-05/0.2415, allocations: 31.86 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.2415, allocations: 4 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.633e-05/0.2416, allocations: 11.84 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.2416, allocations: 8 kB / 1.062 GB, free: 14.55 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.097e-05/0.2416, allocations: 188.5 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.906e-05/0.2417, allocations: 7.906 kB / 1.062 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.83e-05/0.2417, allocations: 20.88 kB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.2417, allocations: 3.984 kB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2417, allocations: 0 / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.2417, allocations: 0 / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003589/0.2421, allocations: 473.1 kB / 1.063 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2421, allocations: 0 / 1.063 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.989e-05/0.2421, allocations: 7.938 kB / 1.063 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.2421, allocations: 4 kB / 1.063 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.2422, allocations: 4 kB / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2422, allocations: 0 / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2422, allocations: 4 kB / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.2423, allocations: 123.9 kB / 1.063 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.2423, allocations: 85.02 kB / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.2423, allocations: 0 / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.382e-05/0.2424, allocations: 11.92 kB / 1.063 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.63e-05/0.2424, allocations: 7.938 kB / 1.063 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-06/0.2424, allocations: 8 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.461e-05/0.2425, allocations: 120 kB / 1.063 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2425, allocations: 0 / 1.063 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003158/0.2428, allocations: 55.75 kB / 1.063 GB, free: 13.33 MB / 0.8262 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 (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.0002966/0.2431, allocations: 0.6538 MB / 1.064 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001677/0.2433, allocations: 104.9 kB / 1.064 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2433, allocations: 0 / 1.064 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.592e-05/0.2433, allocations: 24.23 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.2436, allocations: 21.38 kB / 1.064 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.2449, allocations: 1.729 MB / 1.065 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.2452, allocations: 0.7279 MB / 1.066 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.538e-05/0.2453, allocations: 24.62 kB / 1.066 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.589e-05/0.2453, allocations: 31.42 kB / 1.066 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2453, allocations: 4 kB / 1.066 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.685/5.93, allocations: 2.353 MB / 1.069 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.62/20.55, allocations: 14.64 kB / 1.069 GB, free: 7.516 MB / 0.8262 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/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) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches