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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007014/0.007014, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001823/0.001823, allocations: 196.5 kB / 16.67 MB, free: 5.926 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.703/2.703, allocations: 482.4 MB / 0.7548 GB, free: 6.863 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 67.94 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2725, allocations: 162.2 MB / 1.241 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004529/0.2771, allocations: 3.082 MB / 1.244 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002558/0.2796, allocations: 1.718 MB / 1.246 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.588e-05/0.2797, allocations: 4 kB / 1.246 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0009671/0.2807, allocations: 330.7 kB / 1.246 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004162/0.2811, allocations: 215.1 kB / 1.247 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003944/0.2816, allocations: 183.5 kB / 1.247 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003657/0.2819, allocations: 315 kB / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003789/0.2823, allocations: 245.4 kB / 1.247 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.2825, allocations: 135.6 kB / 1.247 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002936/0.2828, allocations: 159.4 kB / 1.248 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.2829, allocations: 20 kB / 1.248 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003821/0.2832, allocations: 247.5 kB / 1.248 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.2834, allocations: 95.78 kB / 1.248 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.2835, allocations: 127.4 kB / 1.248 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000509/0.284, allocations: 430.4 kB / 1.249 GB, free: 2 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.284, allocations: 0 / 1.249 GB, free: 2 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.212e-06/0.284, allocations: 4 kB / 1.249 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.299e-06/0.2841, allocations: 0 / 1.249 GB, free: 1.996 MB / 0.9669 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.0009019/0.285, allocations: 0.5493 MB / 1.249 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.285, allocations: 12.03 kB / 1.249 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.89e-05/0.2851, allocations: 58.72 kB / 1.249 GB, free: 1.32 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007197/0.2858, allocations: 100.6 kB / 1.249 GB, free: 1.223 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.2861, allocations: 256 kB / 1.249 GB, free: 0.9336 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.2862, allocations: 24.8 kB / 1.25 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.682e-05/0.2863, allocations: 20.56 kB / 1.25 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005818/0.2868, allocations: 376.9 kB / 1.25 GB, free: 0.5039 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.2869, allocations: 4 kB / 1.25 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.2869, allocations: 4 kB / 1.25 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.287, allocations: 32.41 kB / 1.25 GB, free: 472 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004973/0.2875, allocations: 313.5 kB / 1.25 GB, free: 160 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.2894, allocations: 1.529 MB / 1.252 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004424/0.2898, allocations: 234.4 kB / 1.252 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.29, allocations: 116.8 kB / 1.252 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001347/0.2902, allocations: 89.09 kB / 1.252 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.2902, allocations: 30.56 kB / 1.252 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 3.316e-06/0.2902, allocations: 0 / 1.252 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.001246/0.2914, allocations: 0.7898 MB / 1.253 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.2915, allocations: 67.34 kB / 1.253 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.2917, allocations: 190.7 kB / 1.253 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.2917, allocations: 29.7 kB / 1.253 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.2918, allocations: 160.2 kB / 1.253 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.818e-05/0.2919, allocations: 71.38 kB / 1.253 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.292, allocations: 57.67 kB / 1.253 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2922, allocations: 334.8 kB / 1.254 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.2923, allocations: 111.9 kB / 1.254 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/0.2926, allocations: 169.9 kB / 1.254 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.293, allocations: 301.1 kB / 1.254 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.293, allocations: 0 / 1.254 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007697/0.2938, allocations: 417.9 kB / 1.255 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.2938, allocations: 13.59 kB / 1.255 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2938, allocations: 0 / 1.255 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003971/0.2942, allocations: 96.77 kB / 1.255 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.2945, allocations: 51.89 kB / 1.255 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.2965, allocations: 1.891 MB / 1.257 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.2967, allocations: 19.95 kB / 1.257 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.2968, allocations: 8 kB / 1.257 GB, free: 8.949 MB / 0.9825 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.0001558/0.2969, allocations: 167.2 kB / 1.257 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.863e-05/0.297, allocations: 15.91 kB / 1.257 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004975/0.2975, allocations: 295.4 kB / 1.257 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2975, allocations: 4 kB / 1.257 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.2975, allocations: 0 / 1.257 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2975, allocations: 3.938 kB / 1.257 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000924/0.2984, allocations: 0.699 MB / 1.258 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.2985, allocations: 0 / 1.258 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/0.2988, allocations: 67.95 kB / 1.258 GB, free: 7.633 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.2988, allocations: 3.938 kB / 1.258 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.2988, allocations: 4 kB / 1.258 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.2988, allocations: 3.984 kB / 1.258 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2988, allocations: 4 kB / 1.258 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006568/0.2995, allocations: 0.5206 MB / 1.259 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.2996, allocations: 116.9 kB / 1.259 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.769e-05/0.2997, allocations: 8 kB / 1.259 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.2998, allocations: 7.984 kB / 1.259 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.22e-05/0.2999, allocations: 15.98 kB / 1.259 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.2999, allocations: 8.062 kB / 1.259 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001353/0.3, allocations: 144.1 kB / 1.259 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3, allocations: 0 / 1.259 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003494/0.3004, allocations: 68 kB / 1.259 GB, free: 6.695 MB / 0.9825 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.0009571/0.3014, allocations: 1.063 MB / 1.26 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007092/0.3021, allocations: 422.6 kB / 1.26 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3021, allocations: 8 kB / 1.26 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.3023, allocations: 119.8 kB / 1.26 GB, free: 5.047 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.3027, allocations: 31.98 kB / 1.26 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003778/0.3064, allocations: 2.923 MB / 1.263 GB, free: 1.965 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003785/0.3068, allocations: 0.7753 MB / 1.264 GB, free: 1.164 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001574/0.307, allocations: 53.91 kB / 1.264 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.3071, allocations: 67.41 kB / 1.264 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.3071, allocations: 0 / 1.264 GB, free: 1.047 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02883/0.336, allocations: 5.096 MB / 1.269 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.713/10.05, allocations: 1.562 kB / 1.269 GB, free: 12.13 MB / 0.9981 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 400 --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