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.007142/0.007142, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001828/0.001828, allocations: 188.9 kB / 16.67 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.614/2.614, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 60.12 kB / 1.054 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2705, allocations: 157.4 MB / 1.207 GB, free: 10.24 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004554/0.2751, allocations: 3.083 MB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002656/0.2778, allocations: 1.718 MB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.278, allocations: 4 kB / 1.212 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.279, allocations: 330.7 kB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0005468/0.2796, allocations: 215.1 kB / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000489/0.2801, allocations: 185.2 kB / 1.213 GB, free: 4.691 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00039/0.2805, allocations: 319 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000391/0.2809, allocations: 237 kB / 1.213 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.2811, allocations: 139.5 kB / 1.213 GB, free: 4.004 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003372/0.2815, allocations: 163.4 kB / 1.213 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.518e-05/0.2815, allocations: 20 kB / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004184/0.282, allocations: 239.5 kB / 1.214 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.2821, allocations: 103.8 kB / 1.214 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.2822, allocations: 123.4 kB / 1.214 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000546/0.2828, allocations: 418.7 kB / 1.214 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.2828, allocations: 7.984 kB / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2828, allocations: 0 / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.336e-05/0.2828, allocations: 4 kB / 1.214 GB, free: 2.945 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.001014/0.2838, allocations: 0.5441 MB / 1.215 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.2839, allocations: 12.62 kB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.143e-05/0.284, allocations: 54.73 kB / 1.215 GB, free: 2.281 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007821/0.2848, allocations: 92.55 kB / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.2851, allocations: 267.9 kB / 1.215 GB, free: 1.891 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.2851, allocations: 12.81 kB / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.883e-05/0.2853, allocations: 28.55 kB / 1.215 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005507/0.2858, allocations: 376.9 kB / 1.216 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.2858, allocations: 8 kB / 1.216 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.2859, allocations: 7.984 kB / 1.216 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.783e-05/0.286, allocations: 28.42 kB / 1.216 GB, free: 1.414 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/0.2864, allocations: 305.5 kB / 1.216 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.2881, allocations: 1.525 MB / 1.218 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.2885, allocations: 230.4 kB / 1.218 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.2887, allocations: 116.8 kB / 1.218 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001291/0.2888, allocations: 89.09 kB / 1.218 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.2888, allocations: 34.56 kB / 1.218 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.873e-06/0.2888, allocations: 0 / 1.218 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.001164/0.29, allocations: 0.7918 MB / 1.219 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.2901, allocations: 59.36 kB / 1.219 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.2902, allocations: 199.1 kB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.2903, allocations: 33.64 kB / 1.219 GB, free: 13.78 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.609e-05/0.2904, allocations: 167.8 kB / 1.219 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.11e-05/0.2904, allocations: 63.11 kB / 1.219 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.162e-05/0.2905, allocations: 61.53 kB / 1.219 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.874e-05/0.2906, allocations: 330.8 kB / 1.22 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.2908, allocations: 115.9 kB / 1.22 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.291, allocations: 165.9 kB / 1.22 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.2914, allocations: 297.8 kB / 1.22 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2914, allocations: 4 kB / 1.22 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007583/0.2921, allocations: 418.4 kB / 1.221 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.2922, allocations: 8 kB / 1.221 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.2922, allocations: 3.938 kB / 1.221 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000413/0.2926, allocations: 100.9 kB / 1.221 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002496/0.2929, allocations: 47.97 kB / 1.221 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001829/0.2947, allocations: 1.879 MB / 1.223 GB, free: 9.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.2949, allocations: 15.95 kB / 1.223 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.295, allocations: 16.06 kB / 1.223 GB, free: 9.91 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.0001573/0.2951, allocations: 158.4 kB / 1.223 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.2952, allocations: 15.81 kB / 1.223 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004571/0.2957, allocations: 292.5 kB / 1.223 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.2957, allocations: 4 kB / 1.223 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.2957, allocations: 4 kB / 1.223 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.2957, allocations: 7.922 kB / 1.223 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008459/0.2965, allocations: 0.7003 MB / 1.224 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2966, allocations: 0 / 1.224 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002951/0.2969, allocations: 59.89 kB / 1.224 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.2969, allocations: 3.938 kB / 1.224 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.2969, allocations: 8 kB / 1.224 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.2969, allocations: 64 / 1.224 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.2969, allocations: 8 kB / 1.224 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005657/0.2975, allocations: 0.5138 MB / 1.224 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.2976, allocations: 116.8 kB / 1.224 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/0.2976, allocations: 8 kB / 1.224 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.2978, allocations: 7.984 kB / 1.224 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.228e-05/0.2979, allocations: 20.05 kB / 1.224 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.2979, allocations: 7.984 kB / 1.224 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001246/0.298, allocations: 148 kB / 1.225 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.61e-07/0.298, allocations: 0 / 1.225 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003682/0.2984, allocations: 64 kB / 1.225 GB, free: 7.668 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.0008438/0.2993, allocations: 1.06 MB / 1.226 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000709/0.3, allocations: 436.5 kB / 1.226 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3, allocations: 4.062 kB / 1.226 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.3001, allocations: 123.9 kB / 1.226 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.3005, allocations: 42.16 kB / 1.226 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003639/0.3042, allocations: 2.893 MB / 1.229 GB, free: 2.949 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.3045, allocations: 0.7714 MB / 1.23 GB, free: 2.152 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001663/0.3047, allocations: 57.89 kB / 1.23 GB, free: 2.098 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.3048, allocations: 67.41 kB / 1.23 GB, free: 2.031 MB / 0.9825 GB Notification: Performance of SimCode: time 6.52e-07/0.3048, allocations: 0 / 1.23 GB, free: 2.031 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.3292, allocations: 5.165 MB / 1.235 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.129/9.458, allocations: 3.562 kB / 1.235 GB, free: 13.05 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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