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.001576/0.001576, allocations: 104.3 kB / 16.35 MB, free: 5.824 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.001907/0.001907, allocations: 190.8 kB / 17.29 MB, free: 5.48 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.421/1.421, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.484/2.484, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 59.56 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.3532, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004591/0.3579, allocations: 3.085 MB / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002866/0.3608, allocations: 1.741 MB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.3609, allocations: 4 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.3621, allocations: 338.6 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000556/0.3627, allocations: 211.1 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.3632, allocations: 183.5 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004054/0.3636, allocations: 315 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000424/0.3641, allocations: 236.7 kB / 1.033 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.3643, allocations: 143.5 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003288/0.3646, allocations: 155.5 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/0.3647, allocations: 24 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004106/0.3651, allocations: 243.5 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.3652, allocations: 95.78 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001316/0.3653, allocations: 123.4 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005108/0.3659, allocations: 426.7 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.3659, allocations: 0 / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.399e-05/0.3659, allocations: 4 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.258e-05/0.3659, allocations: 0 / 1.034 GB, free: 10.77 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.000942/0.3669, allocations: 0.542 MB / 1.034 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.3669, allocations: 8.031 kB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007246/0.3676, allocations: 92.55 kB / 1.034 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.368, allocations: 263.9 kB / 1.035 GB, free: 9.781 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.368, allocations: 16.8 kB / 1.035 GB, free: 9.762 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.3682, allocations: 24.56 kB / 1.035 GB, free: 9.738 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005631/0.3687, allocations: 381.1 kB / 1.035 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3688, allocations: 0 / 1.035 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.3688, allocations: 11.94 kB / 1.035 GB, free: 9.332 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.3689, allocations: 32.42 kB / 1.035 GB, free: 9.301 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004794/0.3694, allocations: 309.5 kB / 1.035 GB, free: 9 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.3713, allocations: 1.514 MB / 1.037 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.3717, allocations: 234.2 kB / 1.037 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.3719, allocations: 116.8 kB / 1.037 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001718/0.3721, allocations: 89.09 kB / 1.037 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.3721, allocations: 38.56 kB / 1.037 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=18): time 1.613e-06/0.3721, allocations: 0 / 1.037 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.001289/0.3734, allocations: 0.7923 MB / 1.038 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.3735, allocations: 55.41 kB / 1.038 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.3737, allocations: 200 kB / 1.038 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.3737, allocations: 25.7 kB / 1.038 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.3738, allocations: 163.8 kB / 1.039 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.3739, allocations: 67.02 kB / 1.039 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.374, allocations: 57.69 kB / 1.039 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3742, allocations: 342.6 kB / 1.039 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.3743, allocations: 111.9 kB / 1.039 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.3746, allocations: 165.9 kB / 1.039 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003928/0.375, allocations: 291.8 kB / 1.04 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.375, allocations: 0 / 1.04 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007585/0.3757, allocations: 424.9 kB / 1.04 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.3758, allocations: 8 kB / 1.04 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3758, allocations: 0 / 1.04 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004377/0.3762, allocations: 101 kB / 1.04 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.3765, allocations: 51.89 kB / 1.04 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002035/0.3785, allocations: 1.879 MB / 1.042 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.3787, allocations: 19.95 kB / 1.042 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.3788, allocations: 12 kB / 1.042 GB, free: 1.816 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.000192/0.379, allocations: 165.8 kB / 1.042 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.249e-05/0.379, allocations: 19.81 kB / 1.042 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005554/0.3796, allocations: 305.2 kB / 1.042 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3796, allocations: 4 kB / 1.042 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-06/0.3796, allocations: 0 / 1.042 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.3796, allocations: 3.938 kB / 1.042 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000955/0.3806, allocations: 0.7054 MB / 1.043 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.3806, allocations: 0 / 1.043 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.3809, allocations: 59.89 kB / 1.043 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3809, allocations: 0 / 1.043 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.3809, allocations: 11.94 kB / 1.043 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.381, allocations: 128 / 1.043 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.381, allocations: 8 kB / 1.043 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006217/0.3816, allocations: 0.5087 MB / 1.044 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.3817, allocations: 116.8 kB / 1.044 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.436e-05/0.3818, allocations: 4 kB / 1.044 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.382, allocations: 11.98 kB / 1.044 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.51e-05/0.382, allocations: 15.92 kB / 1.044 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.382, allocations: 11.98 kB / 1.044 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001342/0.3822, allocations: 152.6 kB / 1.044 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3822, allocations: 0 / 1.044 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003635/0.3825, allocations: 67.98 kB / 1.044 GB, free: 15.55 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.0001687/0.3827, allocations: 103.2 kB / 1.044 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007397/0.3835, allocations: 426.6 kB / 1.045 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3835, allocations: 0 / 1.045 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.3836, allocations: 127.8 kB / 1.045 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/0.384, allocations: 38.38 kB / 1.045 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.3852, allocations: 0.6275 MB / 1.045 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.3856, allocations: 0.7714 MB / 1.046 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001591/0.3858, allocations: 57.91 kB / 1.046 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.319e-05/0.3859, allocations: 23.38 kB / 1.046 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.3859, allocations: 0 / 1.046 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of Templates: time 0.006721/0.3926, allocations: 2.779 MB / 1.049 GB, free: 10.54 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 cvode -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) Reference file matches