Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_10_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.001288/0.001288, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001494/0.001494, allocations: 194.4 kB / 16.25 MB, free: 6.637 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.297/1.297, allocations: 222.9 MB / 239.9 MB, free: 4.484 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.399/2.399, allocations: 437 MB / 0.7101 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 55.91 kB / 0.8689 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5792/0.5806, allocations: 151.6 MB / 1.017 GB, free: 2.668 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004229/0.5848, allocations: 3.145 MB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002274/0.5871, allocations: 1.71 MB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.976e-05/0.5872, allocations: 4 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009255/0.5882, allocations: 322.6 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000389/0.5886, allocations: 203.2 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003637/0.589, allocations: 159.7 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003275/0.5893, allocations: 319 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004092/0.5897, allocations: 267.5 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.5899, allocations: 139.5 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.5901, allocations: 171.4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.263e-05/0.5902, allocations: 20 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003252/0.5905, allocations: 247.4 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.5906, allocations: 95.78 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.5908, allocations: 127.4 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004498/0.5912, allocations: 442.6 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.5912, allocations: 0 / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.072e-06/0.5912, allocations: 0 / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.5912, allocations: 0 / 1.024 GB, free: 11.33 MB / 0.7794 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.0008576/0.5921, allocations: 0.5395 MB / 1.025 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.5921, allocations: 8.031 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.34e-05/0.5922, allocations: 62.73 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006859/0.5929, allocations: 92.55 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.5932, allocations: 259.8 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.5932, allocations: 16.81 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/0.5933, allocations: 24.55 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/0.5938, allocations: 377 kB / 1.025 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.5939, allocations: 3.938 kB / 1.025 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.5939, allocations: 4 kB / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.65e-05/0.594, allocations: 32.41 kB / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004442/0.5944, allocations: 309.5 kB / 1.026 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/0.596, allocations: 1.529 MB / 1.027 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004086/0.5965, allocations: 234.4 kB / 1.027 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.5966, allocations: 118.8 kB / 1.028 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001284/0.5968, allocations: 89.09 kB / 1.028 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.5968, allocations: 38.56 kB / 1.028 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/0.5968, allocations: 0 / 1.028 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001145/0.598, allocations: 0.7858 MB / 1.028 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.334e-05/0.598, allocations: 59.39 kB / 1.028 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.5982, allocations: 190.7 kB / 1.029 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.5982, allocations: 33.7 kB / 1.029 GB, free: 6.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.512e-05/0.5983, allocations: 171.8 kB / 1.029 GB, free: 6.008 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.429e-05/0.5984, allocations: 67 kB / 1.029 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.876e-05/0.5985, allocations: 53.69 kB / 1.029 GB, free: 5.883 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.5986, allocations: 330.8 kB / 1.029 GB, free: 5.551 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.5988, allocations: 115.9 kB / 1.029 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.5989, allocations: 173.9 kB / 1.03 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.5993, allocations: 287.4 kB / 1.03 GB, free: 4.945 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.5993, allocations: 4 kB / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007083/0.6, allocations: 417.8 kB / 1.03 GB, free: 4.527 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.6001, allocations: 7.938 kB / 1.03 GB, free: 4.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.6001, allocations: 8 kB / 1.03 GB, free: 4.512 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003893/0.6005, allocations: 100.9 kB / 1.03 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.6007, allocations: 55.95 kB / 1.03 GB, free: 4.355 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001817/0.6025, allocations: 1.879 MB / 1.032 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002168/0.6028, allocations: 19.95 kB / 1.032 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.6028, allocations: 8 kB / 1.032 GB, free: 2.309 MB / 0.7794 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.0001422/0.603, allocations: 159.3 kB / 1.032 GB, free: 2.145 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.603, allocations: 15.81 kB / 1.032 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004532/0.6035, allocations: 311.4 kB / 1.033 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.6035, allocations: 0 / 1.033 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.6035, allocations: 4 kB / 1.033 GB, free: 1.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.6035, allocations: 7.922 kB / 1.033 GB, free: 1.812 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008269/0.6043, allocations: 0.6967 MB / 1.033 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.6043, allocations: 0 / 1.033 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002949/0.6046, allocations: 63.89 kB / 1.034 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.6046, allocations: 8 kB / 1.034 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.6047, allocations: 4 kB / 1.034 GB, free: 0.9805 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.203e-06/0.6047, allocations: 3.984 kB / 1.034 GB, free: 0.9766 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.6047, allocations: 4 kB / 1.034 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005598/0.6053, allocations: 0.5063 MB / 1.034 GB, free: 456 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.6054, allocations: 120.9 kB / 1.034 GB, free: 316 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.6054, allocations: 12.06 kB / 1.034 GB, free: 304 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.6056, allocations: 15.92 kB / 1.034 GB, free: 288 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.6056, allocations: 11.98 kB / 1.034 GB, free: 276 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.6056, allocations: 4 kB / 1.034 GB, free: 272 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001233/0.6058, allocations: 152 kB / 1.034 GB, free: 116 kB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6058, allocations: 0 / 1.034 GB, free: 116 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003304/0.6061, allocations: 60 kB / 1.034 GB, free: 56 kB / 0.7794 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.000859/0.607, allocations: 1.064 MB / 1.035 GB, free: 14.96 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006823/0.6077, allocations: 448.6 kB / 1.036 GB, free: 14.51 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.6077, allocations: 0 / 1.036 GB, free: 14.51 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.6079, allocations: 123.8 kB / 1.036 GB, free: 14.39 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003676/0.6082, allocations: 31.97 kB / 1.036 GB, free: 14.36 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003475/0.6117, allocations: 2.975 MB / 1.039 GB, free: 11.25 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.612, allocations: 0.7714 MB / 1.04 GB, free: 10.45 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001786/0.6122, allocations: 61.91 kB / 1.04 GB, free: 10.39 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.6123, allocations: 67.41 kB / 1.04 GB, free: 10.32 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.6124, allocations: 0 / 1.04 GB, free: 10.32 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01791/0.6303, allocations: 4.93 MB / 1.045 GB, free: 5.602 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003131/0.6306, allocations: 241.2 kB / 1.045 GB, free: 5.352 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/2.372, allocations: 0 / 1.045 GB, free: 5.352 MB / 0.795 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches