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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.0049/0.0049, allocations: 99 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.001057/0.001057, allocations: 196.3 kB / 16.67 MB, free: 5.934 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.678/2.678, allocations: 469.4 MB / 0.7421 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 64.11 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2993, allocations: 159.1 MB / 1.22 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005043/0.3044, allocations: 3.077 MB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002955/0.3074, allocations: 1.73 MB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.3076, allocations: 7.938 kB / 1.224 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001094/0.3088, allocations: 326.7 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005665/0.3093, allocations: 219.1 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005164/0.3099, allocations: 175.5 kB / 1.225 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004375/0.3103, allocations: 323 kB / 1.225 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004193/0.3107, allocations: 233.3 kB / 1.226 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002521/0.311, allocations: 143.5 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003692/0.3114, allocations: 163.4 kB / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.876e-05/0.3115, allocations: 20 kB / 1.226 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004372/0.3119, allocations: 235.6 kB / 1.226 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.312, allocations: 107.7 kB / 1.226 GB, free: 7.891 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.3122, allocations: 119.4 kB / 1.226 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006192/0.3128, allocations: 426.5 kB / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3129, allocations: 3.984 kB / 1.227 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3129, allocations: 0 / 1.227 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.231e-05/0.3129, allocations: 0 / 1.227 GB, free: 7.352 MB / 0.9825 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.001067/0.314, allocations: 0.557 MB / 1.227 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.314, allocations: 8.031 kB / 1.227 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.909e-05/0.3141, allocations: 58.73 kB / 1.227 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007601/0.3149, allocations: 96.69 kB / 1.228 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.3152, allocations: 256 kB / 1.228 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.3152, allocations: 16.81 kB / 1.228 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.3154, allocations: 24.56 kB / 1.228 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005878/0.3159, allocations: 380.9 kB / 1.228 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.316, allocations: 0 / 1.228 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.624e-05/0.316, allocations: 11.98 kB / 1.228 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/0.3161, allocations: 28.42 kB / 1.228 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004838/0.3166, allocations: 305.5 kB / 1.228 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.3184, allocations: 1.529 MB / 1.23 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.3188, allocations: 226.5 kB / 1.23 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.319, allocations: 120.7 kB / 1.23 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.3191, allocations: 89.09 kB / 1.23 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.3191, allocations: 38.56 kB / 1.23 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.3191, allocations: 0 / 1.23 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.001211/0.3204, allocations: 0.8096 MB / 1.231 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.3204, allocations: 55.41 kB / 1.231 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.3206, allocations: 190.7 kB / 1.231 GB, free: 2.215 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.3206, allocations: 37.7 kB / 1.232 GB, free: 2.172 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.757e-05/0.3207, allocations: 164.1 kB / 1.232 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.167e-05/0.3208, allocations: 71.42 kB / 1.232 GB, free: 1.938 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.998e-05/0.3209, allocations: 53.69 kB / 1.232 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.321, allocations: 330.8 kB / 1.232 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.3211, allocations: 111.9 kB / 1.232 GB, free: 1.438 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.3213, allocations: 169.9 kB / 1.232 GB, free: 1.25 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.3217, allocations: 302.6 kB / 1.233 GB, free: 0.9336 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3217, allocations: 4 kB / 1.233 GB, free: 0.9297 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000731/0.3225, allocations: 421.8 kB / 1.233 GB, free: 0.5078 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.3225, allocations: 4 kB / 1.233 GB, free: 0.5039 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3225, allocations: 4 kB / 1.233 GB, free: 0.5 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003914/0.3229, allocations: 100.9 kB / 1.233 GB, free: 408 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.3232, allocations: 51.91 kB / 1.233 GB, free: 356 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001808/0.325, allocations: 1.871 MB / 1.235 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.3252, allocations: 24.17 kB / 1.235 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.3252, allocations: 12 kB / 1.235 GB, free: 14.3 MB / 0.9981 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.0001455/0.3254, allocations: 159.3 kB / 1.235 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.037e-05/0.3254, allocations: 15.91 kB / 1.235 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004663/0.3259, allocations: 297.5 kB / 1.236 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.3259, allocations: 4 kB / 1.236 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.3259, allocations: 0 / 1.236 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.326, allocations: 3.938 kB / 1.236 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008629/0.3268, allocations: 0.7107 MB / 1.236 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3268, allocations: 0 / 1.236 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002888/0.3271, allocations: 55.95 kB / 1.236 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.3272, allocations: 3.938 kB / 1.236 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.3272, allocations: 8 kB / 1.236 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.3272, allocations: 4.062 kB / 1.236 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.3272, allocations: 3.938 kB / 1.236 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000574/0.3278, allocations: 0.5048 MB / 1.237 GB, free: 12.45 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.3279, allocations: 121 kB / 1.237 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.3279, allocations: 8 kB / 1.237 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.3281, allocations: 12.05 kB / 1.237 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.617e-05/0.3282, allocations: 15.98 kB / 1.237 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.3282, allocations: 7.984 kB / 1.237 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001301/0.3283, allocations: 148 kB / 1.237 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3283, allocations: 0 / 1.237 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003505/0.3287, allocations: 64 kB / 1.237 GB, free: 12.05 MB / 0.9981 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.0008683/0.3296, allocations: 1.073 MB / 1.238 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006731/0.3302, allocations: 422.7 kB / 1.239 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.3303, allocations: 4.062 kB / 1.239 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.3304, allocations: 123.8 kB / 1.239 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003666/0.3308, allocations: 35.97 kB / 1.239 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.3343, allocations: 2.893 MB / 1.242 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.3347, allocations: 0.7714 MB / 1.242 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001567/0.3348, allocations: 61.91 kB / 1.242 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.3349, allocations: 67.41 kB / 1.242 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of SimCode: time 3.91e-07/0.335, allocations: 0 / 1.242 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.026/0.361, allocations: 5.12 MB / 1.247 GB, free: 1.48 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.895/9.256, allocations: 8.203 kB / 1.247 GB, free: 1.477 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 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