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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001185, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007228/0.007228, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.439/1.439, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.94/2.94, allocations: 462.6 MB / 0.7363 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004148/0.0004148, allocations: 9.969 kB / 0.9027 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3913/0.3918, allocations: 159.6 MB / 1.059 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004353/0.3962, allocations: 2.76 MB / 1.061 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002929/0.3991, allocations: 1.714 MB / 1.063 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.3993, allocations: 7.938 kB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000228/0.3996, allocations: 35.7 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005522/0.4001, allocations: 187.3 kB / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004686/0.4006, allocations: 178.5 kB / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004529/0.4011, allocations: 470.7 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009721/0.402, allocations: 0.5241 MB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001973/0.4023, allocations: 99.62 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003739/0.4026, allocations: 155.4 kB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.4027, allocations: 12 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005318/0.4032, allocations: 287.4 kB / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.4034, allocations: 95.7 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.4035, allocations: 133.1 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005252/0.404, allocations: 418.9 kB / 1.065 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.4041, allocations: 3.984 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4041, allocations: 4 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.4041, allocations: 0 / 1.065 GB, free: 13.93 MB / 0.8262 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.001057/0.4051, allocations: 0.4992 MB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.4052, allocations: 11.97 kB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008014/0.406, allocations: 92.55 kB / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.4064, allocations: 255.9 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.4064, allocations: 20.81 kB / 1.066 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.4066, allocations: 24.5 kB / 1.066 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005864/0.4072, allocations: 373.2 kB / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.4072, allocations: 0 / 1.067 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.4072, allocations: 15.98 kB / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/0.4073, allocations: 24.42 kB / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.4078, allocations: 317.4 kB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.4096, allocations: 1.529 MB / 1.069 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004706/0.41, allocations: 234.3 kB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.4102, allocations: 116.8 kB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001634/0.4104, allocations: 89.09 kB / 1.069 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.4104, allocations: 34.56 kB / 1.069 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.4104, allocations: 3.938 kB / 1.069 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001325/0.4118, allocations: 0.786 MB / 1.07 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.4118, allocations: 59.41 kB / 1.07 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/0.412, allocations: 207 kB / 1.07 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.4121, allocations: 25.7 kB / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.4122, allocations: 159.9 kB / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.224e-05/0.4122, allocations: 67 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.4123, allocations: 29.7 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4124, allocations: 330.8 kB / 1.071 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.4126, allocations: 115.9 kB / 1.071 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.4128, allocations: 173.9 kB / 1.071 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.4132, allocations: 287.4 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.4132, allocations: 4 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007495/0.414, allocations: 415.2 kB / 1.072 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.414, allocations: 4.188 kB / 1.072 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.414, allocations: 8 kB / 1.072 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000431/0.4144, allocations: 100.8 kB / 1.072 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00025/0.4147, allocations: 55.91 kB / 1.072 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00191/0.4166, allocations: 1.73 MB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/0.4169, allocations: 20.05 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.4169, allocations: 15.94 kB / 1.073 GB, free: 5.188 MB / 0.8262 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.0001827/0.4171, allocations: 153.7 kB / 1.074 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/0.4171, allocations: 19.81 kB / 1.074 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005114/0.4177, allocations: 308.3 kB / 1.074 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.4177, allocations: 0 / 1.074 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.4177, allocations: 0 / 1.074 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.4177, allocations: 0 / 1.074 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009005/0.4186, allocations: 0.7083 MB / 1.075 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4186, allocations: 3.984 kB / 1.075 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002891/0.4189, allocations: 55.95 kB / 1.075 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4189, allocations: 0 / 1.075 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.4189, allocations: 12.06 kB / 1.075 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.4189, allocations: 7.875 kB / 1.075 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.419, allocations: 3.938 kB / 1.075 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006176/0.4196, allocations: 0.5104 MB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.4197, allocations: 116.9 kB / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.4197, allocations: 8 kB / 1.075 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.4199, allocations: 19.98 kB / 1.075 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.543e-05/0.42, allocations: 11.98 kB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.42, allocations: 11.98 kB / 1.075 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001301/0.4201, allocations: 148 kB / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.4201, allocations: 0 / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003711/0.4205, allocations: 64 kB / 1.076 GB, free: 2.93 MB / 0.8262 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.0001765/0.4207, allocations: 103.2 kB / 1.076 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007288/0.4214, allocations: 431.1 kB / 1.076 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4214, allocations: 0 / 1.076 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.4216, allocations: 119.9 kB / 1.076 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004428/0.4221, allocations: 35.86 kB / 1.076 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.4234, allocations: 0.7659 MB / 1.077 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.4237, allocations: 0.7794 MB / 1.078 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001835/0.4239, allocations: 65.89 kB / 1.078 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.328e-05/0.424, allocations: 15.44 kB / 1.078 GB, free: 0.5508 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.424, allocations: 8 kB / 1.078 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of Templates: time 0.006219/0.4302, allocations: 2.634 MB / 1.08 GB, free: 13.92 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (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 & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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