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.005532/0.005532, allocations: 101.9 kB / 15.88 MB, free: 5.867 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.001374/0.001374, allocations: 191.5 kB / 16.79 MB, free: 5.809 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 / 240.5 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.784/2.784, allocations: 461.9 MB / 0.7348 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 64.58 kB / 0.899 GB, free: 36.94 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3449, allocations: 157.4 MB / 1.053 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005157/0.3501, allocations: 3.114 MB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00292/0.353, allocations: 1.741 MB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002123/0.3533, allocations: 3.938 kB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.3543, allocations: 321.9 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006094/0.355, allocations: 191.3 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005339/0.3555, allocations: 167.6 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005164/0.356, allocations: 466.8 kB / 1.059 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004724/0.3565, allocations: 244.8 kB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.3568, allocations: 115.6 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003817/0.3572, allocations: 167.4 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.882e-05/0.3572, allocations: 12 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005285/0.3578, allocations: 291.4 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.3579, allocations: 95.77 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.3581, allocations: 115.4 kB / 1.06 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004384/0.3585, allocations: 323.3 kB / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3585, allocations: 0 / 1.06 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3585, allocations: 8 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.377e-06/0.3585, allocations: 0 / 1.06 GB, free: 0.8711 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.001031/0.3596, allocations: 0.5458 MB / 1.06 GB, free: 284 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.3596, allocations: 15.97 kB / 1.06 GB, free: 268 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000782/0.3604, allocations: 96.53 kB / 1.061 GB, free: 172 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.3608, allocations: 245.7 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.3608, allocations: 16.81 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.3609, allocations: 28.55 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005706/0.3615, allocations: 381.1 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.3615, allocations: 0 / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.3616, allocations: 8 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001009/0.3617, allocations: 24.42 kB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004864/0.3622, allocations: 309.5 kB / 1.062 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.364, allocations: 1.533 MB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004458/0.3645, allocations: 236.2 kB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.3647, allocations: 125 kB / 1.063 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000145/0.3648, allocations: 85.09 kB / 1.063 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.3648, allocations: 42.47 kB / 1.063 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.212e-06/0.3649, allocations: 0 / 1.063 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001322/0.3662, allocations: 0.7921 MB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.3662, allocations: 59.34 kB / 1.064 GB, free: 12 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.3665, allocations: 195.2 kB / 1.064 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.3665, allocations: 33.7 kB / 1.065 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.3666, allocations: 163.8 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.492e-05/0.3667, allocations: 63.02 kB / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.3668, allocations: 57.69 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3669, allocations: 326.8 kB / 1.065 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.3671, allocations: 119.9 kB / 1.065 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.3673, allocations: 165.9 kB / 1.065 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.3677, allocations: 295.8 kB / 1.066 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3677, allocations: 0 / 1.066 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000798/0.3685, allocations: 414.5 kB / 1.066 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3686, allocations: 4 kB / 1.066 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.3686, allocations: 4 kB / 1.066 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004523/0.369, allocations: 96.95 kB / 1.066 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/0.3693, allocations: 63.89 kB / 1.066 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001873/0.3712, allocations: 1.734 MB / 1.068 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.3714, allocations: 15.98 kB / 1.068 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.3715, allocations: 16.06 kB / 1.068 GB, free: 8.055 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.000171/0.3716, allocations: 158.6 kB / 1.068 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.169e-05/0.3717, allocations: 15.81 kB / 1.068 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004879/0.3722, allocations: 300.8 kB / 1.068 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3722, allocations: 0 / 1.068 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.3722, allocations: 4 kB / 1.068 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3722, allocations: 4 kB / 1.068 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000876/0.3731, allocations: 0.7123 MB / 1.069 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.3731, allocations: 4 kB / 1.069 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.3734, allocations: 55.95 kB / 1.069 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3734, allocations: 3.984 kB / 1.069 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.3735, allocations: 8 kB / 1.069 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3735, allocations: 4.062 kB / 1.069 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3735, allocations: 3.938 kB / 1.069 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005838/0.3741, allocations: 0.5141 MB / 1.07 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3742, allocations: 112.9 kB / 1.07 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.3742, allocations: 8 kB / 1.07 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.3744, allocations: 15.92 kB / 1.07 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.425e-05/0.3745, allocations: 16.05 kB / 1.07 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.3745, allocations: 8 kB / 1.07 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001254/0.3746, allocations: 144.1 kB / 1.07 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3746, allocations: 0 / 1.07 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003674/0.375, allocations: 64 kB / 1.07 GB, free: 5.805 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.0001472/0.3751, allocations: 111.2 kB / 1.07 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007121/0.3759, allocations: 438.2 kB / 1.071 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3759, allocations: 0 / 1.071 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.3761, allocations: 117.1 kB / 1.071 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.3765, allocations: 35.48 kB / 1.071 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.3778, allocations: 0.7561 MB / 1.071 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.3781, allocations: 0.7794 MB / 1.072 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.929e-05/0.3782, allocations: 19.44 kB / 1.072 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of SimCode: time 5.71e-07/0.3782, allocations: 0 / 1.072 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of Templates: time 0.006236/0.3845, allocations: 3.589 MB / 1.076 GB, free: 15.89 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/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