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.001679/0.001679, allocations: 108 kB / 15.61 MB, free: 128 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.002023/0.002023, allocations: 198.1 kB / 16.53 MB, free: 6.672 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.627/2.627, allocations: 437.1 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 59.91 kB / 0.8694 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6536/0.655, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004611/0.6596, allocations: 3.075 MB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00262/0.6623, allocations: 1.726 MB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.6624, allocations: 4 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009541/0.6634, allocations: 330.7 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004397/0.6638, allocations: 211.1 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004103/0.6642, allocations: 175.5 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003296/0.6646, allocations: 323 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004039/0.665, allocations: 239 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.6652, allocations: 139.5 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003001/0.6655, allocations: 171.4 kB / 1.024 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.725e-05/0.6655, allocations: 20 kB / 1.024 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003716/0.6659, allocations: 239.5 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.666, allocations: 107.8 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.6662, allocations: 119.5 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004392/0.6666, allocations: 422.7 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.6666, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6666, allocations: 4 kB / 1.025 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.194e-06/0.6666, allocations: 0 / 1.025 GB, free: 11.2 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.0008609/0.6675, allocations: 0.5381 MB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.6676, allocations: 12.03 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.017e-05/0.6676, allocations: 54.73 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007155/0.6683, allocations: 100.5 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002823/0.6686, allocations: 257.2 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.6687, allocations: 16.81 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.703e-05/0.6688, allocations: 28.55 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.6693, allocations: 373 kB / 1.026 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.6693, allocations: 3.938 kB / 1.026 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.6694, allocations: 8 kB / 1.026 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001009/0.6695, allocations: 32.41 kB / 1.026 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004665/0.6699, allocations: 305.5 kB / 1.026 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.6716, allocations: 1.533 MB / 1.028 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004088/0.672, allocations: 230.4 kB / 1.028 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.6722, allocations: 116.8 kB / 1.028 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001311/0.6723, allocations: 93.09 kB / 1.028 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.6724, allocations: 30.56 kB / 1.028 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.664e-06/0.6724, allocations: 0 / 1.028 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001184/0.6736, allocations: 0.7969 MB / 1.029 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/0.6736, allocations: 55.39 kB / 1.029 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.6738, allocations: 194.6 kB / 1.029 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.351e-05/0.6738, allocations: 33.7 kB / 1.029 GB, free: 6.035 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.356e-05/0.6739, allocations: 159.8 kB / 1.029 GB, free: 5.875 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.757e-05/0.674, allocations: 67 kB / 1.029 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.6741, allocations: 57.69 kB / 1.029 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.465e-05/0.6742, allocations: 330.8 kB / 1.03 GB, free: 5.414 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.6743, allocations: 111.9 kB / 1.03 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.6746, allocations: 174.9 kB / 1.03 GB, free: 5.113 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000373/0.6749, allocations: 291.2 kB / 1.03 GB, free: 4.809 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.6749, allocations: 4 kB / 1.03 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007277/0.6757, allocations: 417.3 kB / 1.031 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.6757, allocations: 8 kB / 1.031 GB, free: 4.383 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6757, allocations: 0 / 1.031 GB, free: 4.383 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004061/0.6761, allocations: 108.8 kB / 1.031 GB, free: 4.273 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.6764, allocations: 51.95 kB / 1.031 GB, free: 4.223 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001819/0.6782, allocations: 1.879 MB / 1.033 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.6785, allocations: 19.95 kB / 1.033 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.6785, allocations: 11.98 kB / 1.033 GB, free: 2.172 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.000146/0.6786, allocations: 162.9 kB / 1.033 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.126e-05/0.6787, allocations: 15.81 kB / 1.033 GB, free: 1.988 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004697/0.6792, allocations: 311.2 kB / 1.033 GB, free: 1.684 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.6792, allocations: 4 kB / 1.033 GB, free: 1.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.6792, allocations: 0 / 1.033 GB, free: 1.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.6792, allocations: 3.938 kB / 1.033 GB, free: 1.676 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008421/0.68, allocations: 0.6967 MB / 1.034 GB, free: 0.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.6801, allocations: 4 kB / 1.034 GB, free: 0.9141 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.6804, allocations: 59.89 kB / 1.034 GB, free: 0.8555 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.6804, allocations: 12 kB / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.6804, allocations: 0 / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.6804, allocations: 7.984 kB / 1.034 GB, free: 0.8359 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.6804, allocations: 0 / 1.034 GB, free: 0.8359 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005741/0.681, allocations: 0.5101 MB / 1.034 GB, free: 312 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.911e-05/0.6811, allocations: 116.9 kB / 1.035 GB, free: 176 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.6812, allocations: 12.06 kB / 1.035 GB, free: 164 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001879/0.6814, allocations: 11.98 kB / 1.035 GB, free: 152 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.258e-05/0.6814, allocations: 15.92 kB / 1.035 GB, free: 136 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.6814, allocations: 4 kB / 1.035 GB, free: 132 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001383/0.6816, allocations: 148 kB / 1.035 GB, free: 15.98 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6816, allocations: 0 / 1.035 GB, free: 15.98 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003815/0.682, allocations: 72 kB / 1.035 GB, free: 15.91 MB / 0.795 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.000866/0.6828, allocations: 1.059 MB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007362/0.6836, allocations: 442.6 kB / 1.036 GB, free: 14.38 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.6836, allocations: 0 / 1.036 GB, free: 14.38 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.6838, allocations: 129.8 kB / 1.036 GB, free: 14.25 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/0.6842, allocations: 34.67 kB / 1.036 GB, free: 14.22 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/0.6877, allocations: 2.891 MB / 1.039 GB, free: 11.19 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.688, allocations: 0.7752 MB / 1.04 GB, free: 10.39 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001737/0.6882, allocations: 53.91 kB / 1.04 GB, free: 10.33 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.6883, allocations: 67.41 kB / 1.04 GB, free: 10.27 MB / 0.795 GB Notification: Performance of SimCode: time 4.31e-07/0.6883, allocations: 0 / 1.04 GB, free: 10.27 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.7124, allocations: 4.997 MB / 1.045 GB, free: 5.434 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.358/10.07, allocations: 7.922 kB / 1.045 GB, free: 5.426 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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