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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001473/0.001473, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00175/0.00175, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.344/1.344, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.628/2.628, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 69.56 kB / 0.8984 GB, free: 37.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3105, allocations: 157.4 MB / 1.052 GB, free: 8.918 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004646/0.3152, allocations: 3.13 MB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002643/0.3178, allocations: 1.73 MB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.318, allocations: 4 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0009168/0.3189, allocations: 318.9 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004227/0.3194, allocations: 195.3 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000416/0.3198, allocations: 175.6 kB / 1.058 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004032/0.3202, allocations: 454.8 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004219/0.3206, allocations: 244.8 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.3208, allocations: 123.5 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002904/0.3211, allocations: 163.5 kB / 1.058 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.549e-05/0.3212, allocations: 16 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000421/0.3216, allocations: 291.4 kB / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.3217, allocations: 87.78 kB / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.3218, allocations: 123.4 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004738/0.3223, allocations: 430.6 kB / 1.059 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3223, allocations: 3.984 kB / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3223, allocations: 0 / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.3223, allocations: 0 / 1.059 GB, free: 1.453 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.0009504/0.3233, allocations: 0.5431 MB / 1.06 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3234, allocations: 12.03 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007544/0.3241, allocations: 96.55 kB / 1.06 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.3244, allocations: 251.9 kB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.3244, allocations: 12.81 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.556e-05/0.3245, allocations: 28.55 kB / 1.06 GB, free: 444 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005595/0.3251, allocations: 377.1 kB / 1.061 GB, free: 44 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.3251, allocations: 4 kB / 1.061 GB, free: 40 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.3252, allocations: 7.984 kB / 1.061 GB, free: 32 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-05/0.3253, allocations: 32.36 kB / 1.061 GB, free: 0 / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004756/0.3258, allocations: 309.5 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.3275, allocations: 1.525 MB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000427/0.3279, allocations: 231.6 kB / 1.063 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.3281, allocations: 117.1 kB / 1.063 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/0.3282, allocations: 89.09 kB / 1.063 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.3283, allocations: 42.47 kB / 1.063 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.383e-06/0.3283, allocations: 0 / 1.063 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001265/0.3295, allocations: 0.7933 MB / 1.064 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.3296, allocations: 55.41 kB / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.3298, allocations: 186.7 kB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.3298, allocations: 37.64 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.469e-05/0.3299, allocations: 167.8 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.904e-05/0.33, allocations: 67.02 kB / 1.064 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.757e-05/0.3301, allocations: 57.69 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3302, allocations: 330.8 kB / 1.065 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.3303, allocations: 111.9 kB / 1.065 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.3306, allocations: 167.5 kB / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003741/0.3309, allocations: 300.4 kB / 1.065 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3309, allocations: 0 / 1.065 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007547/0.3317, allocations: 423.2 kB / 1.066 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.3317, allocations: 4 kB / 1.066 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3318, allocations: 4 kB / 1.066 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004348/0.3322, allocations: 100.9 kB / 1.066 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.3325, allocations: 51.91 kB / 1.066 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.3343, allocations: 1.738 MB / 1.067 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.3345, allocations: 15.98 kB / 1.067 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.3345, allocations: 8 kB / 1.067 GB, free: 8.652 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.000157/0.3347, allocations: 161.8 kB / 1.068 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.747e-05/0.3347, allocations: 19.81 kB / 1.068 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004757/0.3352, allocations: 296.8 kB / 1.068 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3352, allocations: 0 / 1.068 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3352, allocations: 0 / 1.068 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3353, allocations: 3.938 kB / 1.068 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009341/0.3362, allocations: 0.7203 MB / 1.069 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3362, allocations: 0 / 1.069 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003101/0.3365, allocations: 59.95 kB / 1.069 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3365, allocations: 0 / 1.069 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.3366, allocations: 4 kB / 1.069 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3366, allocations: 0 / 1.069 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.3366, allocations: 7.875 kB / 1.069 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006208/0.3372, allocations: 0.5157 MB / 1.069 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.3373, allocations: 116.9 kB / 1.069 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.3374, allocations: 4 kB / 1.069 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.3375, allocations: 15.92 kB / 1.069 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.3376, allocations: 15.98 kB / 1.069 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.3376, allocations: 12.05 kB / 1.069 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001227/0.3377, allocations: 148.1 kB / 1.069 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3377, allocations: 4 kB / 1.069 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003695/0.3381, allocations: 64 kB / 1.069 GB, free: 6.391 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.0001526/0.3383, allocations: 111.1 kB / 1.07 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000694/0.339, allocations: 423.4 kB / 1.07 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.339, allocations: 4 kB / 1.07 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.3392, allocations: 123.8 kB / 1.07 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.3396, allocations: 31.98 kB / 1.07 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.3407, allocations: 0.704 MB / 1.071 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.341, allocations: 0.7755 MB / 1.072 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001703/0.3412, allocations: 61.89 kB / 1.072 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.624e-05/0.3413, allocations: 19.44 kB / 1.072 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3413, allocations: 3.938 kB / 1.072 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of Templates: time 0.005933/0.3472, allocations: 2.687 MB / 1.074 GB, free: 1.395 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 -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/jenkins/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