Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_latest_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.001631/0.001631, allocations: 108 kB / 15.61 MB, free: 152 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.001883/0.001883, allocations: 197 kB / 16.53 MB, free: 6.664 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.695/2.695, allocations: 469.4 MB / 0.742 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.36 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2879, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004465/0.2924, allocations: 3.076 MB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002573/0.295, allocations: 1.726 MB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.2951, allocations: 4 kB / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009583/0.2961, allocations: 334 kB / 1.069 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004285/0.2965, allocations: 215 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004217/0.2969, allocations: 191.5 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.2973, allocations: 311 kB / 1.069 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003621/0.2976, allocations: 240.9 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.2978, allocations: 139.5 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002767/0.2981, allocations: 159.4 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.735e-05/0.2981, allocations: 20 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003498/0.2985, allocations: 239.5 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.2986, allocations: 103.8 kB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.2987, allocations: 123.4 kB / 1.07 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.2992, allocations: 426.7 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2992, allocations: 0 / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2992, allocations: 0 / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.2992, allocations: 0 / 1.071 GB, free: 7.246 MB / 0.8262 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.0008711/0.3001, allocations: 0.5459 MB / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.3002, allocations: 8.031 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.26e-05/0.3002, allocations: 58.73 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000735/0.301, allocations: 96.55 kB / 1.071 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.3013, allocations: 251.9 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.3013, allocations: 16.81 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.033e-05/0.3014, allocations: 32.53 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005179/0.3019, allocations: 365 kB / 1.072 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.3019, allocations: 11.94 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.302, allocations: 7.984 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.824e-05/0.3021, allocations: 32.41 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004539/0.3025, allocations: 305.5 kB / 1.072 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001643/0.3042, allocations: 1.533 MB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004223/0.3046, allocations: 238.4 kB / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.3048, allocations: 118.4 kB / 1.074 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000135/0.3049, allocations: 85.11 kB / 1.074 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.305, allocations: 34.56 kB / 1.074 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.373e-06/0.305, allocations: 0 / 1.074 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001194/0.3062, allocations: 0.794 MB / 1.075 GB, free: 2.395 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.3062, allocations: 55.41 kB / 1.075 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.3064, allocations: 203.1 kB / 1.075 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.3064, allocations: 33.7 kB / 1.075 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.182e-05/0.3065, allocations: 159.9 kB / 1.076 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.92e-05/0.3066, allocations: 67 kB / 1.076 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/0.3067, allocations: 49.7 kB / 1.076 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.3068, allocations: 334.8 kB / 1.076 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.307, allocations: 111.9 kB / 1.076 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.3072, allocations: 169.9 kB / 1.076 GB, free: 1.168 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000381/0.3076, allocations: 303.9 kB / 1.077 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3076, allocations: 0 / 1.077 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007249/0.3083, allocations: 410.7 kB / 1.077 GB, free: 452 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.3083, allocations: 4 kB / 1.077 GB, free: 448 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.3084, allocations: 4 kB / 1.077 GB, free: 444 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003988/0.3088, allocations: 108.8 kB / 1.077 GB, free: 332 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.309, allocations: 51.97 kB / 1.077 GB, free: 280 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/0.3109, allocations: 1.875 MB / 1.079 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.3111, allocations: 19.92 kB / 1.079 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.3112, allocations: 11.98 kB / 1.079 GB, free: 14.22 MB / 0.8419 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.000145/0.3113, allocations: 161.6 kB / 1.079 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.957e-05/0.3114, allocations: 15.81 kB / 1.079 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004755/0.3119, allocations: 303.3 kB / 1.079 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3119, allocations: 0 / 1.079 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.3119, allocations: 3.984 kB / 1.079 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3119, allocations: 3.938 kB / 1.079 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008448/0.3127, allocations: 0.7045 MB / 1.08 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3127, allocations: 0 / 1.08 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/0.3131, allocations: 67.95 kB / 1.08 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3131, allocations: 3.938 kB / 1.08 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.3131, allocations: 4 kB / 1.08 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3131, allocations: 0 / 1.08 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3131, allocations: 0 / 1.08 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005821/0.3137, allocations: 0.5075 MB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.3138, allocations: 124.9 kB / 1.081 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.73e-05/0.3139, allocations: 11.98 kB / 1.081 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.3141, allocations: 7.984 kB / 1.081 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.389e-05/0.3141, allocations: 19.92 kB / 1.081 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.3141, allocations: 4 kB / 1.081 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001238/0.3143, allocations: 152 kB / 1.081 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3143, allocations: 0 / 1.081 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003587/0.3146, allocations: 64 kB / 1.081 GB, free: 11.96 MB / 0.8419 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.0008612/0.3155, allocations: 1.068 MB / 1.082 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007241/0.3162, allocations: 454.7 kB / 1.083 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3162, allocations: 0 / 1.083 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.3164, allocations: 123.8 kB / 1.083 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003858/0.3168, allocations: 36.67 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.3204, allocations: 2.876 MB / 1.086 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.3207, allocations: 0.7753 MB / 1.086 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002223/0.3209, allocations: 57.91 kB / 1.086 GB, free: 6.391 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.3211, allocations: 63.41 kB / 1.086 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3211, allocations: 0 / 1.086 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02624/0.3473, allocations: 5.014 MB / 1.091 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.066/9.414, allocations: 10.84 kB / 1.091 GB, free: 1.465 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches