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.00118/0.00118, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001272/0.001272, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.662/2.662, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 64.7 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3518, allocations: 153 MB / 1.027 GB, free: 2.047 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004759/0.3566, allocations: 3.085 MB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002717/0.3594, allocations: 1.733 MB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.3595, allocations: 4 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.3607, allocations: 330.7 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005518/0.3612, allocations: 219.1 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005455/0.3618, allocations: 179.5 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.3622, allocations: 319 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003999/0.3626, allocations: 240.7 kB / 1.033 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.3628, allocations: 135.5 kB / 1.033 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003086/0.3631, allocations: 159.5 kB / 1.033 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.728e-05/0.3631, allocations: 23.98 kB / 1.033 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00041/0.3635, allocations: 239.5 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.3637, allocations: 99.77 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.3638, allocations: 123.4 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004983/0.3643, allocations: 434.6 kB / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3643, allocations: 0 / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3643, allocations: 0 / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.643e-06/0.3643, allocations: 0 / 1.034 GB, free: 10.75 MB / 0.8106 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.0009444/0.3653, allocations: 0.542 MB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.3653, allocations: 8.031 kB / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007578/0.3661, allocations: 96.55 kB / 1.034 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.3665, allocations: 261.2 kB / 1.035 GB, free: 9.766 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.3665, allocations: 12.81 kB / 1.035 GB, free: 9.75 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.3666, allocations: 28.55 kB / 1.035 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.3671, allocations: 377.1 kB / 1.035 GB, free: 9.332 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.3672, allocations: 7.938 kB / 1.035 GB, free: 9.324 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.3672, allocations: 7.984 kB / 1.035 GB, free: 9.316 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.676e-05/0.3673, allocations: 36.41 kB / 1.035 GB, free: 9.281 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004555/0.3678, allocations: 301.5 kB / 1.035 GB, free: 8.988 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.3695, allocations: 1.514 MB / 1.037 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004166/0.37, allocations: 242.2 kB / 1.037 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.3701, allocations: 116.8 kB / 1.037 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/0.3703, allocations: 89.11 kB / 1.037 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.3703, allocations: 30.56 kB / 1.037 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=18): time 1.773e-06/0.3703, allocations: 0 / 1.037 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.001206/0.3715, allocations: 0.7986 MB / 1.038 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.3716, allocations: 51.41 kB / 1.038 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.3718, allocations: 200 kB / 1.038 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.3718, allocations: 29.7 kB / 1.038 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.893e-05/0.3719, allocations: 163.8 kB / 1.039 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.743e-05/0.3719, allocations: 70.98 kB / 1.039 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.782e-05/0.372, allocations: 53.7 kB / 1.039 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.3721, allocations: 338.7 kB / 1.039 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.3723, allocations: 111.9 kB / 1.039 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.3725, allocations: 165.9 kB / 1.039 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.3729, allocations: 291.8 kB / 1.04 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3729, allocations: 4 kB / 1.04 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007154/0.3736, allocations: 416.9 kB / 1.04 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.3737, allocations: 8 kB / 1.04 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3737, allocations: 0 / 1.04 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004152/0.3741, allocations: 108.9 kB / 1.04 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.3744, allocations: 43.97 kB / 1.04 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.3763, allocations: 1.879 MB / 1.042 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.3765, allocations: 23.95 kB / 1.042 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.3765, allocations: 16.05 kB / 1.042 GB, free: 1.797 MB / 0.8106 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.0001565/0.3767, allocations: 157.7 kB / 1.042 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/0.3767, allocations: 19.75 kB / 1.042 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004677/0.3772, allocations: 303.1 kB / 1.042 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3772, allocations: 4 kB / 1.042 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.3772, allocations: 4 kB / 1.042 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3772, allocations: 7.922 kB / 1.042 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008926/0.3781, allocations: 0.6973 MB / 1.043 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.3782, allocations: 4 kB / 1.043 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002949/0.3785, allocations: 60.08 kB / 1.043 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.3785, allocations: 4 kB / 1.043 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.158e-05/0.3785, allocations: 7.938 kB / 1.043 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3785, allocations: 4.062 kB / 1.043 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3785, allocations: 4 kB / 1.043 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006085/0.3791, allocations: 0.5067 MB / 1.044 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.3793, allocations: 116.9 kB / 1.044 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/0.3793, allocations: 8 kB / 1.044 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.3795, allocations: 19.91 kB / 1.044 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.3795, allocations: 20.03 kB / 1.044 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.3796, allocations: 4 kB / 1.044 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001395/0.3797, allocations: 152.5 kB / 1.044 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3797, allocations: 0 / 1.044 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003624/0.3801, allocations: 68 kB / 1.044 GB, free: 15.52 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.0001651/0.3803, allocations: 103.2 kB / 1.044 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007346/0.381, allocations: 426.3 kB / 1.045 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.381, allocations: 0 / 1.045 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.3812, allocations: 127.8 kB / 1.045 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003866/0.3816, allocations: 33.23 kB / 1.045 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.3827, allocations: 0.6159 MB / 1.045 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.3831, allocations: 0.783 MB / 1.046 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001512/0.3832, allocations: 57.89 kB / 1.046 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.347e-05/0.3833, allocations: 23.38 kB / 1.046 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.3833, allocations: 0 / 1.046 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of Templates: time 0.006165/0.3895, allocations: 2.793 MB / 1.049 GB, free: 10.52 MB / 0.8262 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sen.I,sen.V,loa.S[1],loa.S[2] Variables in the result:$cse1,loa.P,loa.P_nominal,loa.S[1],loa.S[2],loa.V_nominal,loa.initMode,loa.linearized,loa.mode,loa.pf,loa.pf_internal,loa.use_pf_in,res.M,res.R,res.T,res.T_heatPort,res.T_ref,sen.I,sen.V,sou.V,sou.definiteReference,sou.f,sou.phiSou,sou.potentialReference,time