Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_11_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.007387/0.007387, allocations: 96.5 kB / 15.73 MB, free: 6.043 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.002062/0.002062, allocations: 195.6 kB / 16.68 MB, free: 5.969 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.782/2.782, allocations: 469.8 MB / 0.7425 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 63.91 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2641, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004615/0.2687, allocations: 3.092 MB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002637/0.2714, allocations: 1.726 MB / 1.225 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.576e-05/0.2715, allocations: 7.938 kB / 1.225 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0009652/0.2725, allocations: 325.6 kB / 1.225 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0004267/0.2729, allocations: 227 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.2733, allocations: 171.6 kB / 1.226 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003786/0.2737, allocations: 319 kB / 1.226 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003833/0.2741, allocations: 232.7 kB / 1.226 GB, free: 8.191 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001924/0.2743, allocations: 147.4 kB / 1.226 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003011/0.2746, allocations: 155.5 kB / 1.226 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.142e-05/0.2747, allocations: 24 kB / 1.226 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003787/0.275, allocations: 239.5 kB / 1.227 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.2752, allocations: 99.72 kB / 1.227 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.2753, allocations: 127.4 kB / 1.227 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005055/0.2758, allocations: 422.5 kB / 1.227 GB, free: 7 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.2758, allocations: 0 / 1.227 GB, free: 7 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2758, allocations: 0 / 1.227 GB, free: 7 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.2758, allocations: 0 / 1.227 GB, free: 7 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.0008977/0.2768, allocations: 0.5609 MB / 1.228 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.2768, allocations: 11.97 kB / 1.228 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.884e-05/0.2769, allocations: 62.72 kB / 1.228 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007303/0.2776, allocations: 92.69 kB / 1.228 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.2779, allocations: 256 kB / 1.228 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.278, allocations: 16.8 kB / 1.228 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.036e-05/0.2781, allocations: 24.56 kB / 1.228 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/0.2786, allocations: 384.9 kB / 1.229 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.2787, allocations: 3.938 kB / 1.229 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.2787, allocations: 8 kB / 1.229 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.425e-05/0.2788, allocations: 28.42 kB / 1.229 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004996/0.2793, allocations: 305.5 kB / 1.229 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.2811, allocations: 1.526 MB / 1.23 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004471/0.2815, allocations: 238.4 kB / 1.231 GB, free: 3.23 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.2817, allocations: 112.8 kB / 1.231 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/0.2819, allocations: 93.09 kB / 1.231 GB, free: 3.008 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.2819, allocations: 30.56 kB / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.363e-06/0.2819, allocations: 0 / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.001249/0.2832, allocations: 0.8017 MB / 1.232 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.2832, allocations: 51.41 kB / 1.232 GB, free: 2.055 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.2834, allocations: 195.2 kB / 1.232 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.2834, allocations: 33.7 kB / 1.232 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2836, allocations: 168.1 kB / 1.232 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.724e-05/0.2836, allocations: 63.44 kB / 1.232 GB, free: 1.586 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.922e-05/0.2837, allocations: 57.69 kB / 1.232 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2839, allocations: 330.8 kB / 1.233 GB, free: 1.191 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.2841, allocations: 111.9 kB / 1.233 GB, free: 1.082 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.2843, allocations: 173.9 kB / 1.233 GB, free: 0.8906 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000415/0.2847, allocations: 295.3 kB / 1.233 GB, free: 0.582 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.2847, allocations: 4 kB / 1.233 GB, free: 0.5781 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007865/0.2855, allocations: 423 kB / 1.233 GB, free: 160 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.2855, allocations: 4 kB / 1.233 GB, free: 156 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.2855, allocations: 0 / 1.233 GB, free: 156 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003922/0.2859, allocations: 101 kB / 1.234 GB, free: 52 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.2862, allocations: 51.89 kB / 1.234 GB, free: 0 / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002037/0.2882, allocations: 1.883 MB / 1.235 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.2885, allocations: 23.98 kB / 1.235 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.2885, allocations: 4 kB / 1.235 GB, free: 13.95 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.0001502/0.2887, allocations: 158.9 kB / 1.236 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.071e-05/0.2887, allocations: 15.91 kB / 1.236 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005105/0.2892, allocations: 295.3 kB / 1.236 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2893, allocations: 11.94 kB / 1.236 GB, free: 13.46 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.2893, allocations: 0 / 1.236 GB, free: 13.46 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2893, allocations: 7.875 kB / 1.236 GB, free: 13.46 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009252/0.2902, allocations: 0.7051 MB / 1.237 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2902, allocations: 192 / 1.237 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003077/0.2905, allocations: 55.95 kB / 1.237 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.2905, allocations: 7.938 kB / 1.237 GB, free: 12.63 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.2906, allocations: 7.984 kB / 1.237 GB, free: 12.62 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.2906, allocations: 12 kB / 1.237 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.2906, allocations: 0 / 1.237 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006507/0.2912, allocations: 0.5068 MB / 1.237 GB, free: 12.08 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.2914, allocations: 121 kB / 1.237 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.2914, allocations: 4 kB / 1.237 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.2916, allocations: 11.98 kB / 1.237 GB, free: 11.93 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.884e-05/0.2916, allocations: 20.03 kB / 1.237 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.2917, allocations: 8 kB / 1.237 GB, free: 11.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001442/0.2918, allocations: 144 kB / 1.238 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2918, allocations: 7.875 kB / 1.238 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003516/0.2922, allocations: 68 kB / 1.238 GB, free: 11.68 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.000997/0.2932, allocations: 1.063 MB / 1.239 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007215/0.2939, allocations: 420.6 kB / 1.239 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2939, allocations: 8.062 kB / 1.239 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.2941, allocations: 119.9 kB / 1.239 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.2945, allocations: 34.05 kB / 1.239 GB, free: 10.01 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003827/0.2983, allocations: 2.894 MB / 1.242 GB, free: 6.988 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.2987, allocations: 0.7753 MB / 1.243 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001645/0.2989, allocations: 65.88 kB / 1.243 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.299, allocations: 67.34 kB / 1.243 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of SimCode: time 2.41e-07/0.2991, allocations: 0 / 1.243 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02919/0.3282, allocations: 5.105 MB / 1.248 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.763/10.09, allocations: 11.25 kB / 1.248 GB, free: 1.125 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches