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.007962/0.007962, 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.002199/0.002199, 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.322/1.322, 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 11.1.0-maint.11.x/package.mo): time 2.467/2.467, allocations: 469.8 MB / 0.7425 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 75.88 kB / 1.065 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6603/0.6621, allocations: 159.1 MB / 1.22 GB, free: 2.023 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004326/0.6664, allocations: 3.098 MB / 1.223 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002479/0.6689, allocations: 1.714 MB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.097e-05/0.669, allocations: 4 kB / 1.225 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008653/0.6699, allocations: 338.7 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003895/0.6703, allocations: 211.1 kB / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003714/0.6707, allocations: 179.5 kB / 1.226 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003323/0.671, allocations: 323 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/0.6714, allocations: 232.8 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.6715, allocations: 143.5 kB / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002687/0.6718, allocations: 155.5 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.735e-05/0.6719, allocations: 28 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003474/0.6722, allocations: 243.5 kB / 1.227 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.6723, allocations: 99.78 kB / 1.227 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.6725, allocations: 123.4 kB / 1.227 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004727/0.6729, allocations: 426.1 kB / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.073e-06/0.6729, allocations: 0 / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of FrontEnd: time 6.91e-07/0.673, allocations: 0 / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.673, allocations: 0 / 1.227 GB, free: 10.73 MB / 0.9512 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.0008051/0.6738, allocations: 0.5609 MB / 1.228 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 2.841e-05/0.6738, allocations: 8.031 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.914e-05/0.6739, allocations: 58.72 kB / 1.228 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006609/0.6745, allocations: 92.69 kB / 1.228 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.6748, allocations: 260 kB / 1.228 GB, free: 9.664 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.6748, allocations: 16.8 kB / 1.228 GB, free: 9.648 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.711e-05/0.6749, allocations: 28.56 kB / 1.228 GB, free: 9.621 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.6755, allocations: 377 kB / 1.229 GB, free: 9.234 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.6755, allocations: 7.922 kB / 1.229 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.683e-05/0.6755, allocations: 8 kB / 1.229 GB, free: 9.219 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.773e-05/0.6756, allocations: 32.41 kB / 1.229 GB, free: 9.188 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004536/0.6761, allocations: 305.5 kB / 1.229 GB, free: 8.887 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00163/0.6777, allocations: 1.529 MB / 1.23 GB, free: 7.207 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003984/0.6781, allocations: 238.3 kB / 1.231 GB, free: 6.965 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.6783, allocations: 116.8 kB / 1.231 GB, free: 6.848 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001317/0.6784, allocations: 89.09 kB / 1.231 GB, free: 6.742 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.6785, allocations: 30.56 kB / 1.231 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=18): time 1.253e-06/0.6785, allocations: 0 / 1.231 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.001133/0.6796, allocations: 0.8066 MB / 1.232 GB, free: 5.848 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.6796, allocations: 51.41 kB / 1.232 GB, free: 5.785 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.6798, allocations: 195.2 kB / 1.232 GB, free: 5.586 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.6799, allocations: 29.7 kB / 1.232 GB, free: 5.551 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.267e-05/0.68, allocations: 164.1 kB / 1.232 GB, free: 5.387 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.558e-05/0.68, allocations: 67.44 kB / 1.232 GB, free: 5.32 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.399e-05/0.6801, allocations: 57.69 kB / 1.232 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.6802, allocations: 334.7 kB / 1.233 GB, free: 4.922 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.6804, allocations: 111.9 kB / 1.233 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.6806, allocations: 173.9 kB / 1.233 GB, free: 4.621 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.681, allocations: 289.8 kB / 1.233 GB, free: 4.32 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.681, allocations: 0 / 1.233 GB, free: 4.32 MB / 0.9512 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007133/0.6817, allocations: 422 kB / 1.233 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.6818, allocations: 12.03 kB / 1.233 GB, free: 3.887 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.6818, allocations: 0 / 1.233 GB, free: 3.887 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003569/0.6821, allocations: 104.6 kB / 1.234 GB, free: 3.781 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.6824, allocations: 47.95 kB / 1.234 GB, free: 3.734 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.6842, allocations: 1.884 MB / 1.235 GB, free: 1.711 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001889/0.6844, allocations: 19.86 kB / 1.235 GB, free: 1.691 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.6845, allocations: 12 kB / 1.235 GB, free: 1.68 MB / 0.9512 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.0001372/0.6846, allocations: 153.8 kB / 1.236 GB, free: 1.52 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.6847, allocations: 15.91 kB / 1.236 GB, free: 1.504 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004566/0.6851, allocations: 303.3 kB / 1.236 GB, free: 1.199 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.6851, allocations: 4 kB / 1.236 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.6851, allocations: 0 / 1.236 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.6852, allocations: 3.938 kB / 1.236 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000839/0.686, allocations: 0.7012 MB / 1.237 GB, free: 440 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.686, allocations: 64 / 1.237 GB, free: 440 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.6863, allocations: 59.89 kB / 1.237 GB, free: 380 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.6863, allocations: 7.938 kB / 1.237 GB, free: 372 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.6863, allocations: 7.984 kB / 1.237 GB, free: 364 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.6863, allocations: 4 kB / 1.237 GB, free: 360 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.6863, allocations: 0 / 1.237 GB, free: 360 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006054/0.687, allocations: 0.5185 MB / 1.237 GB, free: 15.81 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.6871, allocations: 121 kB / 1.237 GB, free: 15.67 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.6871, allocations: 0 / 1.237 GB, free: 15.67 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.6873, allocations: 15.98 kB / 1.237 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.032e-05/0.6873, allocations: 15.92 kB / 1.237 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.6873, allocations: 8 kB / 1.237 GB, free: 15.63 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001263/0.6875, allocations: 144 kB / 1.238 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6875, allocations: 0 / 1.238 GB, free: 15.49 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003222/0.6878, allocations: 68 kB / 1.238 GB, free: 15.42 MB / 0.9669 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.000895/0.6887, allocations: 1.065 MB / 1.239 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006424/0.6894, allocations: 426.6 kB / 1.239 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.6894, allocations: 0 / 1.239 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.6895, allocations: 119.9 kB / 1.239 GB, free: 13.78 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.6899, allocations: 36.44 kB / 1.239 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003435/0.6933, allocations: 2.905 MB / 1.242 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.6937, allocations: 0.783 MB / 1.243 GB, free: 9.906 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001433/0.6938, allocations: 53.91 kB / 1.243 GB, free: 9.855 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.6939, allocations: 69.78 kB / 1.243 GB, free: 9.789 MB / 0.9669 GB Notification: Performance of SimCode: time 2.4e-07/0.694, allocations: 0 / 1.243 GB, free: 9.789 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.641/2.335, allocations: 5.095 MB / 1.248 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.4/17.73, allocations: 14.52 kB / 1.248 GB, free: 4.863 MB / 0.9669 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 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.mat","/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