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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0013/0.0013, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001379/0.001379, allocations: 189 kB / 16.14 MB, free: 6.711 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.216/1.216, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.274/2.274, allocations: 437 MB / 0.71 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 63.91 kB / 0.8687 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.484/0.4854, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003911/0.4893, allocations: 3.128 MB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002267/0.4916, allocations: 1.741 MB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.4917, allocations: 11.94 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0008059/0.4926, allocations: 310.8 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003924/0.493, allocations: 191.3 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.4934, allocations: 167.7 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000393/0.4938, allocations: 458.8 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003737/0.4941, allocations: 242.9 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.4943, allocations: 119.5 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002732/0.4946, allocations: 163.5 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.495e-05/0.4947, allocations: 16 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004126/0.4951, allocations: 291.4 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.4952, allocations: 103.7 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.4953, allocations: 115.4 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004561/0.4958, allocations: 434.7 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.4958, allocations: 0 / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.71e-07/0.4958, allocations: 0 / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.4958, allocations: 0 / 1.024 GB, free: 11.31 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.0008297/0.4966, allocations: 0.5421 MB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.4967, allocations: 12.03 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.504e-05/0.4967, allocations: 58.73 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006838/0.4974, allocations: 92.55 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.4977, allocations: 257.5 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.4977, allocations: 20.8 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.107e-05/0.4978, allocations: 20.56 kB / 1.025 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005118/0.4983, allocations: 384.9 kB / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.4984, allocations: 0 / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.4984, allocations: 8 kB / 1.025 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.932e-05/0.4985, allocations: 28.41 kB / 1.025 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004404/0.4989, allocations: 309.5 kB / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.5005, allocations: 1.533 MB / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003888/0.5009, allocations: 228 kB / 1.027 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.5011, allocations: 117.1 kB / 1.027 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00013/0.5012, allocations: 89.09 kB / 1.028 GB, free: 7.348 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.5013, allocations: 42.47 kB / 1.028 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.5013, allocations: 0 / 1.028 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.00111/0.5024, allocations: 0.7914 MB / 1.028 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.5024, allocations: 55.41 kB / 1.028 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.5026, allocations: 199.2 kB / 1.029 GB, free: 6.188 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.5026, allocations: 33.7 kB / 1.029 GB, free: 6.148 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.637e-05/0.5027, allocations: 163.8 kB / 1.029 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.5028, allocations: 70.98 kB / 1.029 GB, free: 5.914 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.348e-05/0.5029, allocations: 53.7 kB / 1.029 GB, free: 5.855 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.503, allocations: 330.8 kB / 1.029 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.5031, allocations: 115.9 kB / 1.029 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.5033, allocations: 165.9 kB / 1.03 GB, free: 5.227 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003494/0.5037, allocations: 295.3 kB / 1.03 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.5037, allocations: 4 kB / 1.03 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006967/0.5044, allocations: 417.7 kB / 1.03 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.5044, allocations: 11.98 kB / 1.03 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.5044, allocations: 0 / 1.03 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003844/0.5048, allocations: 96.95 kB / 1.03 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.5051, allocations: 59.89 kB / 1.03 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.5067, allocations: 1.741 MB / 1.032 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.5069, allocations: 19.97 kB / 1.032 GB, free: 2.438 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.507, allocations: 12 kB / 1.032 GB, free: 2.426 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.0001429/0.5071, allocations: 161.8 kB / 1.032 GB, free: 2.258 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.597e-05/0.5072, allocations: 15.81 kB / 1.032 GB, free: 2.242 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004302/0.5076, allocations: 300.9 kB / 1.033 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.5076, allocations: 0 / 1.033 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-06/0.5076, allocations: 0 / 1.033 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.5076, allocations: 8 kB / 1.033 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007837/0.5084, allocations: 0.699 MB / 1.033 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.5084, allocations: 0 / 1.033 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000291/0.5087, allocations: 59.89 kB / 1.033 GB, free: 1.121 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.5087, allocations: 0 / 1.033 GB, free: 1.121 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.5088, allocations: 8 kB / 1.033 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.5088, allocations: 0 / 1.033 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.5088, allocations: 3.938 kB / 1.033 GB, free: 1.109 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005544/0.5093, allocations: 0.5218 MB / 1.034 GB, free: 0.5664 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.017e-05/0.5094, allocations: 109.1 kB / 1.034 GB, free: 452 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.5095, allocations: 15.98 kB / 1.034 GB, free: 436 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.5097, allocations: 15.92 kB / 1.034 GB, free: 420 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/0.5097, allocations: 11.98 kB / 1.034 GB, free: 408 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.5097, allocations: 12.06 kB / 1.034 GB, free: 396 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001187/0.5098, allocations: 148 kB / 1.034 GB, free: 244 kB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5099, allocations: 0 / 1.034 GB, free: 244 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003334/0.5102, allocations: 64 kB / 1.034 GB, free: 180 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.0008288/0.511, allocations: 1.064 MB / 1.035 GB, free: 15.08 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005998/0.5116, allocations: 427.8 kB / 1.036 GB, free: 14.65 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5117, allocations: 448 / 1.036 GB, free: 14.65 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.5118, allocations: 115.9 kB / 1.036 GB, free: 14.54 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.5122, allocations: 35.97 kB / 1.036 GB, free: 14.5 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.5154, allocations: 2.975 MB / 1.039 GB, free: 11.39 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.5157, allocations: 0.7714 MB / 1.039 GB, free: 10.59 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001609/0.5159, allocations: 61.89 kB / 1.039 GB, free: 10.54 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.516, allocations: 67.41 kB / 1.04 GB, free: 10.47 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.516, allocations: 0 / 1.04 GB, free: 10.47 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.954/3.47, allocations: 4.788 MB / 1.044 GB, free: 5.867 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/3.47, allocations: 241.5 kB / 1.044 GB, free: 5.613 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.056/6.526, allocations: 5.625 kB / 1.044 GB, free: 5.613 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