Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_9_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.001649/0.001649, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001982/0.001982, allocations: 193.2 kB / 16.25 MB, free: 6.629 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.336/1.336, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.231/2.231, allocations: 390.2 MB / 0.6644 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.91 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4929/0.4942, allocations: 140.4 MB / 0.9492 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003692/0.4979, allocations: 3.13 MB / 0.9523 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002002/0.4999, allocations: 1.701 MB / 0.954 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.5001, allocations: 8.094 kB / 0.954 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008006/0.5009, allocations: 314.9 kB / 0.9543 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004268/0.5013, allocations: 197 kB / 0.9545 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.5017, allocations: 167 kB / 0.9546 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003105/0.502, allocations: 315.2 kB / 0.9549 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003712/0.5024, allocations: 273 kB / 0.9552 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.5026, allocations: 139.8 kB / 0.9553 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000276/0.5029, allocations: 163.4 kB / 0.9555 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.763e-05/0.503, allocations: 20.38 kB / 0.9555 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00032/0.5033, allocations: 245.1 kB / 0.9557 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.004e-05/0.5034, allocations: 99.69 kB / 0.9558 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.855e-05/0.5035, allocations: 127.7 kB / 0.9559 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004137/0.5039, allocations: 436.5 kB / 0.9564 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.5039, allocations: 0.9688 kB / 0.9564 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.81e-07/0.5039, allocations: 4 kB / 0.9564 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.5039, allocations: 0 / 0.9564 GB, free: 3.902 MB / 0.7169 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.0007719/0.5047, allocations: 0.5531 MB / 0.9569 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.5048, allocations: 10 kB / 0.9569 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.993e-05/0.5048, allocations: 56.27 kB / 0.957 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006704/0.5055, allocations: 95.62 kB / 0.9571 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002272/0.5057, allocations: 258.7 kB / 0.9573 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.5057, allocations: 17.72 kB / 0.9573 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.714e-05/0.5058, allocations: 32.56 kB / 0.9573 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004638/0.5063, allocations: 370.6 kB / 0.9577 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.5063, allocations: 8.922 kB / 0.9577 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.5064, allocations: 6.188 kB / 0.9577 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.21e-05/0.5065, allocations: 32.62 kB / 0.9577 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000422/0.5069, allocations: 306.9 kB / 0.958 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.5082, allocations: 1.52 MB / 0.9595 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003668/0.5086, allocations: 233.1 kB / 0.9597 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.5087, allocations: 123.4 kB / 0.9599 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.5088, allocations: 83.42 kB / 0.9599 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.5088, allocations: 35.69 kB / 0.96 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.5089, allocations: 0.9062 kB / 0.96 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.001004/0.5099, allocations: 0.7974 MB / 0.9608 GB, free: 284 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.72e-05/0.5099, allocations: 53.66 kB / 0.9608 GB, free: 220 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.51, allocations: 194.2 kB / 0.961 GB, free: 68 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.5101, allocations: 34.78 kB / 0.961 GB, free: 28 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.589e-05/0.5102, allocations: 159 kB / 0.9612 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.777e-05/0.5102, allocations: 68.38 kB / 0.9612 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.416e-05/0.5103, allocations: 55.52 kB / 0.9613 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.947e-05/0.5104, allocations: 335.3 kB / 0.9616 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.5106, allocations: 115.8 kB / 0.9617 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.5108, allocations: 167.9 kB / 0.9619 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003475/0.5111, allocations: 298.5 kB / 0.9622 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.5111, allocations: 1.094 kB / 0.9622 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006906/0.5118, allocations: 416 kB / 0.9626 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.5118, allocations: 6.281 kB / 0.9626 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.5119, allocations: 5.312 kB / 0.9626 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.5122, allocations: 102.3 kB / 0.9627 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.5125, allocations: 47.06 kB / 0.9627 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001663/0.5141, allocations: 1.876 MB / 0.9646 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.5144, allocations: 19.64 kB / 0.9646 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.5144, allocations: 18.39 kB / 0.9646 GB, free: 13.06 MB / 0.7325 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.5145, allocations: 154.2 kB / 0.9647 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.55e-05/0.5146, allocations: 19.5 kB / 0.9648 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004422/0.515, allocations: 302 kB / 0.965 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.515, allocations: 2.781 kB / 0.965 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.515, allocations: 0 / 0.965 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.5151, allocations: 7.922 kB / 0.9651 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007942/0.5159, allocations: 0.7027 MB / 0.9657 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.5159, allocations: 5.312 kB / 0.9657 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002879/0.5162, allocations: 61.39 kB / 0.9658 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.5162, allocations: 6.562 kB / 0.9658 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.5162, allocations: 5.375 kB / 0.9658 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5162, allocations: 1.844 kB / 0.9658 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5162, allocations: 0.8125 kB / 0.9658 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005489/0.5168, allocations: 0.5124 MB / 0.9663 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.636e-05/0.5169, allocations: 119.3 kB / 0.9664 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.5169, allocations: 7 kB / 0.9664 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.5171, allocations: 17.84 kB / 0.9665 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.438e-05/0.5171, allocations: 14.48 kB / 0.9665 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.5172, allocations: 4.375 kB / 0.9665 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001158/0.5173, allocations: 143.8 kB / 0.9666 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5173, allocations: 0 / 0.9666 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003366/0.5176, allocations: 65.09 kB / 0.9667 GB, free: 11.53 MB / 0.7325 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 (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.000803/0.5184, allocations: 1.062 MB / 0.9677 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006795/0.5191, allocations: 446.7 kB / 0.9681 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5191, allocations: 0 / 0.9681 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.5193, allocations: 123.5 kB / 0.9683 GB, free: 10.33 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.5197, allocations: 31.55 kB / 0.9683 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003347/0.523, allocations: 2.969 MB / 0.9712 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.5233, allocations: 0.7815 MB / 0.9719 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001719/0.5235, allocations: 59.84 kB / 0.972 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.5236, allocations: 67.38 kB / 0.9721 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of SimCode: time 3.5e-07/0.5236, allocations: 0 / 0.9721 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.889/1.413, allocations: 4.942 MB / 0.9769 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003016/1.413, allocations: 241.3 kB / 0.9771 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.155/3.568, allocations: 0 / 0.9771 GB, free: 4.602 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches