Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: 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_9_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_9_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.001558/0.001558, allocations: 108.9 kB / 16.37 MB, free: 6.016 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.001701/0.001701, allocations: 197.2 kB / 17.31 MB, free: 5.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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.223/2.223, allocations: 390.3 MB / 0.6655 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002364/0.002364, allocations: 62.25 kB / 0.814 GB, free: 32.84 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3497, allocations: 140.4 MB / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.006688/0.3564, allocations: 3.093 MB / 0.9541 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004669/0.3611, allocations: 1.722 MB / 0.9558 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004015/0.3616, allocations: 11.94 kB / 0.9558 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001852/0.3635, allocations: 330.7 kB / 0.9562 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001119/0.3647, allocations: 215 kB / 0.9564 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000815/0.3655, allocations: 179.6 kB / 0.9565 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0006584/0.3662, allocations: 319 kB / 0.9568 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006484/0.3669, allocations: 248.6 kB / 0.9571 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003916/0.3673, allocations: 135.5 kB / 0.9572 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005535/0.3678, allocations: 159.4 kB / 0.9574 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.921e-05/0.3679, allocations: 20 kB / 0.9574 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007228/0.3687, allocations: 247.5 kB / 0.9576 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002132/0.3689, allocations: 95.78 kB / 0.9577 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003154/0.3692, allocations: 135.3 kB / 0.9578 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009611/0.3702, allocations: 410.8 kB / 0.9582 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3702, allocations: 0 / 0.9582 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.625e-06/0.3702, allocations: 8 kB / 0.9582 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.326e-05/0.3703, allocations: 0 / 0.9582 GB, free: 0.7578 MB / 0.7325 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.001476/0.3717, allocations: 0.542 MB / 0.9588 GB, free: 168 kB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.3718, allocations: 12.03 kB / 0.9588 GB, free: 156 kB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001212/0.373, allocations: 92.55 kB / 0.9589 GB, free: 64 kB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000539/0.3736, allocations: 255.9 kB / 0.9591 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.3736, allocations: 16.81 kB / 0.9591 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.3738, allocations: 28.53 kB / 0.9591 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008477/0.3747, allocations: 373.1 kB / 0.9595 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.3747, allocations: 0 / 0.9595 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.326e-05/0.3747, allocations: 8 kB / 0.9595 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/0.3749, allocations: 36.41 kB / 0.9595 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00078/0.3757, allocations: 301.5 kB / 0.9598 GB, free: 15 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002892/0.3786, allocations: 1.533 MB / 0.9613 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007065/0.3793, allocations: 230.4 kB / 0.9615 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.3796, allocations: 116.8 kB / 0.9617 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000218/0.3799, allocations: 85.09 kB / 0.9617 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.3799, allocations: 46.55 kB / 0.9618 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=18): time 5.831e-06/0.38, allocations: 0 / 0.9618 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19): time 0.002178/0.3822, allocations: 0.7904 MB / 0.9626 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.3822, allocations: 59.34 kB / 0.9626 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003661/0.3826, allocations: 191.2 kB / 0.9628 GB, free: 11.7 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.672e-05/0.3827, allocations: 33.7 kB / 0.9628 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.3829, allocations: 159.8 kB / 0.963 GB, free: 11.5 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.383, allocations: 67 kB / 0.963 GB, free: 11.44 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.3832, allocations: 53.7 kB / 0.9631 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001807/0.3834, allocations: 334.8 kB / 0.9634 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003224/0.3837, allocations: 111.9 kB / 0.9635 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004216/0.3842, allocations: 169.9 kB / 0.9637 GB, free: 10.75 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007297/0.3849, allocations: 304.8 kB / 0.964 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3849, allocations: 0 / 0.964 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001364/0.3863, allocations: 414.8 kB / 0.9644 GB, free: 10.02 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.3864, allocations: 4 kB / 0.9644 GB, free: 10.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.3864, allocations: 11.92 kB / 0.9644 GB, free: 10 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006707/0.3871, allocations: 96.92 kB / 0.9645 GB, free: 9.902 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004311/0.3875, allocations: 55.91 kB / 0.9645 GB, free: 9.848 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003336/0.3909, allocations: 1.875 MB / 0.9664 GB, free: 7.836 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004179/0.3913, allocations: 27.91 kB / 0.9664 GB, free: 7.809 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/0.3914, allocations: 8 kB / 0.9664 GB, free: 7.801 MB / 0.7481 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.0003254/0.3917, allocations: 161.8 kB / 0.9666 GB, free: 7.633 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.522e-05/0.3918, allocations: 15.81 kB / 0.9666 GB, free: 7.617 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008601/0.3927, allocations: 301.4 kB / 0.9669 GB, free: 7.32 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3927, allocations: 0 / 0.9669 GB, free: 7.32 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3927, allocations: 0 / 0.9669 GB, free: 7.32 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.3928, allocations: 7.938 kB / 0.9669 GB, free: 7.312 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.3944, allocations: 0.6991 MB / 0.9675 GB, free: 6.551 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.3945, allocations: 0 / 0.9675 GB, free: 6.551 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000525/0.395, allocations: 63.89 kB / 0.9676 GB, free: 6.488 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.395, allocations: 0 / 0.9676 GB, free: 6.488 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/0.3951, allocations: 11.94 kB / 0.9676 GB, free: 6.477 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3951, allocations: 0 / 0.9676 GB, free: 6.477 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3951, allocations: 0 / 0.9676 GB, free: 6.477 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.3962, allocations: 0.5199 MB / 0.9681 GB, free: 5.938 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002056/0.3964, allocations: 116.9 kB / 0.9682 GB, free: 5.805 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.443e-05/0.3965, allocations: 15.98 kB / 0.9683 GB, free: 5.789 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.3969, allocations: 11.98 kB / 0.9683 GB, free: 5.777 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/0.3969, allocations: 11.98 kB / 0.9683 GB, free: 5.766 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.397, allocations: 4 kB / 0.9683 GB, free: 5.762 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002162/0.3972, allocations: 152.1 kB / 0.9684 GB, free: 5.609 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.2e-07/0.3972, allocations: 0 / 0.9684 GB, free: 5.609 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000661/0.3979, allocations: 60 kB / 0.9685 GB, free: 5.551 MB / 0.7481 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.0002413/0.3981, allocations: 107.2 kB / 0.9686 GB, free: 5.438 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001209/0.3994, allocations: 440.8 kB / 0.969 GB, free: 4.996 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.3994, allocations: 0 / 0.969 GB, free: 4.996 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002992/0.3997, allocations: 115.9 kB / 0.9691 GB, free: 4.883 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006644/0.4004, allocations: 42.14 kB / 0.9692 GB, free: 4.844 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.4024, allocations: 0.6157 MB / 0.9698 GB, free: 4.191 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005416/0.403, allocations: 0.7753 MB / 0.9705 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002958/0.4033, allocations: 61.89 kB / 0.9706 GB, free: 3.328 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.4034, allocations: 23.42 kB / 0.9706 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of SimCode: time 5.31e-07/0.4034, allocations: 0 / 0.9706 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of Templates: time 0.01148/0.4149, allocations: 2.781 MB / 0.9733 GB, free: 0.5391 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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