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: 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_11_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_11_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.001686/0.001686, allocations: 110.9 kB / 16.27 MB, free: 6.414 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.001828/0.001828, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.535/1.535, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.847/2.847, allocations: 469.8 MB / 0.743 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 67.91 kB / 0.9092 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3726, allocations: 159.2 MB / 1.065 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005282/0.378, allocations: 3.069 MB / 1.068 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002984/0.381, allocations: 1.733 MB / 1.069 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.3811, allocations: 4 kB / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.3822, allocations: 330.7 kB / 1.07 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0004944/0.3827, allocations: 215.1 kB / 1.07 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004607/0.3832, allocations: 179.4 kB / 1.07 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003816/0.3836, allocations: 315 kB / 1.07 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004304/0.384, allocations: 245 kB / 1.071 GB, free: 8.691 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.3842, allocations: 135.5 kB / 1.071 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003207/0.3845, allocations: 159.5 kB / 1.071 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.91e-05/0.3846, allocations: 24 kB / 1.071 GB, free: 8.379 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004098/0.385, allocations: 247.5 kB / 1.071 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.3851, allocations: 99.77 kB / 1.071 GB, free: 8.039 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.3853, allocations: 119.4 kB / 1.071 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005458/0.3858, allocations: 422.8 kB / 1.072 GB, free: 7.508 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3858, allocations: 3.938 kB / 1.072 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3858, allocations: 0 / 1.072 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.3859, allocations: 3.938 kB / 1.072 GB, free: 7.5 MB / 0.8419 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.001045/0.3869, allocations: 0.542 MB / 1.072 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.387, allocations: 12.62 kB / 1.072 GB, free: 6.898 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007374/0.3877, allocations: 92.55 kB / 1.072 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.3881, allocations: 247.9 kB / 1.073 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.3881, allocations: 20.8 kB / 1.073 GB, free: 6.508 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.3882, allocations: 20.56 kB / 1.073 GB, free: 6.488 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005955/0.3888, allocations: 377.1 kB / 1.073 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.3888, allocations: 7.984 kB / 1.073 GB, free: 6.094 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.3889, allocations: 4 kB / 1.073 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001031/0.389, allocations: 32.41 kB / 1.073 GB, free: 6.059 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000501/0.3895, allocations: 309.5 kB / 1.073 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.3914, allocations: 1.525 MB / 1.075 GB, free: 4.078 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004546/0.3919, allocations: 246.2 kB / 1.075 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.3921, allocations: 116.8 kB / 1.075 GB, free: 3.711 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001471/0.3922, allocations: 85.09 kB / 1.075 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3923, allocations: 38.56 kB / 1.075 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=18): time 1.212e-06/0.3923, allocations: 0 / 1.075 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19): time 0.001349/0.3936, allocations: 0.7946 MB / 1.076 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.3937, allocations: 55.41 kB / 1.076 GB, free: 2.652 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.3939, allocations: 195.2 kB / 1.076 GB, free: 2.453 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.3939, allocations: 33.7 kB / 1.076 GB, free: 2.414 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.3941, allocations: 159.8 kB / 1.076 GB, free: 2.254 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.3941, allocations: 71 kB / 1.077 GB, free: 2.184 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-05/0.3942, allocations: 53.69 kB / 1.077 GB, free: 2.125 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.3944, allocations: 330.8 kB / 1.077 GB, free: 1.793 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.3946, allocations: 119.9 kB / 1.077 GB, free: 1.676 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.3948, allocations: 157.9 kB / 1.077 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004227/0.3952, allocations: 307.4 kB / 1.077 GB, free: 1.18 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.3952, allocations: 0 / 1.077 GB, free: 1.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007794/0.396, allocations: 422 kB / 1.078 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3961, allocations: 6.344 kB / 1.078 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3961, allocations: 4 kB / 1.078 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004229/0.3965, allocations: 96.95 kB / 1.078 GB, free: 0.6562 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.3968, allocations: 59.89 kB / 1.078 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6021/0.9988, allocations: 1.869 MB / 1.08 GB, free: 21.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.9992, allocations: 15.78 kB / 1.08 GB, free: 21.16 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.9992, allocations: 9.266 kB / 1.08 GB, free: 21.16 MB / 0.8419 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.0001763/0.9994, allocations: 163.8 kB / 1.08 GB, free: 21.05 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.261e-05/0.9994, allocations: 17.45 kB / 1.08 GB, free: 21.05 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005425/1, allocations: 299.1 kB / 1.08 GB, free: 21.02 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/1, allocations: 2.156 kB / 1.08 GB, free: 21.02 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/1, allocations: 5.891 kB / 1.08 GB, free: 21.02 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/1, allocations: 5.422 kB / 1.08 GB, free: 21.02 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009114/1.001, allocations: 0.7039 MB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/1.001, allocations: 2.312 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003021/1.001, allocations: 57.61 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/1.001, allocations: 1.828 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/1.001, allocations: 11.12 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/1.001, allocations: 2.219 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.001, allocations: 0.75 kB / 1.081 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006042/1.002, allocations: 0.5147 MB / 1.082 GB, free: 20.48 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-05/1.002, allocations: 113.2 kB / 1.082 GB, free: 20.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/1.002, allocations: 11.11 kB / 1.082 GB, free: 20.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/1.002, allocations: 14.62 kB / 1.082 GB, free: 20.37 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.011e-05/1.002, allocations: 18.39 kB / 1.082 GB, free: 20.37 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/1.002, allocations: 8 kB / 1.082 GB, free: 20.36 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001258/1.002, allocations: 147.2 kB / 1.082 GB, free: 20.26 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.11e-07/1.002, allocations: 0 / 1.082 GB, free: 20.26 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000374/1.003, allocations: 66.81 kB / 1.082 GB, free: 20.25 MB / 0.8419 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.0001431/1.003, allocations: 104.7 kB / 1.082 GB, free: 20.16 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007802/1.004, allocations: 449.4 kB / 1.083 GB, free: 19.96 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/1.004, allocations: 0 / 1.083 GB, free: 19.96 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001622/1.004, allocations: 128.8 kB / 1.083 GB, free: 19.91 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/1.004, allocations: 33.97 kB / 1.083 GB, free: 19.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/1.006, allocations: 0.674 MB / 1.083 GB, free: 19.54 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/1.006, allocations: 0.7727 MB / 1.084 GB, free: 18.83 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.945e-05/1.006, allocations: 21.98 kB / 1.084 GB, free: 18.83 MB / 0.8419 GB Notification: Performance of SimCode: time 3.6e-07/1.006, allocations: 4 kB / 1.084 GB, free: 18.82 MB / 0.8419 GB Notification: Performance of Templates: time 0.007616/1.013, allocations: 3.589 MB / 1.088 GB, free: 18.57 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (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 & ./Buildings_11_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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