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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.007973/0.007973, allocations: 102.1 kB / 15.73 MB, free: 5.508 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.001769/0.001769, allocations: 195.7 kB / 16.67 MB, free: 5.438 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.527/2.527, allocations: 390.2 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 70.48 kB / 0.9508 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3209, allocations: 140.4 MB / 1.088 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005197/0.3262, allocations: 3.081 MB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002804/0.329, allocations: 1.71 MB / 1.093 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.3292, allocations: 4 kB / 1.093 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.3303, allocations: 332.9 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005272/0.3308, allocations: 227.1 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004927/0.3313, allocations: 183.5 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003543/0.3317, allocations: 315 kB / 1.094 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000383/0.3321, allocations: 240.7 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/0.3323, allocations: 139.5 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003187/0.3326, allocations: 159.5 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.3326, allocations: 20 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003773/0.333, allocations: 243.5 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.3331, allocations: 99.77 kB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.3333, allocations: 127.4 kB / 1.095 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005357/0.3338, allocations: 422.5 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3339, allocations: 0 / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3339, allocations: 0 / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.345e-06/0.3339, allocations: 4 kB / 1.095 GB, free: 10.21 MB / 0.8575 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.0009727/0.3349, allocations: 0.5493 MB / 1.096 GB, free: 9.617 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.3349, allocations: 12.03 kB / 1.096 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007715/0.3357, allocations: 92.69 kB / 1.096 GB, free: 9.516 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.336, allocations: 260 kB / 1.096 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.3361, allocations: 16.81 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.3362, allocations: 36.48 kB / 1.096 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005762/0.3368, allocations: 373.1 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3368, allocations: 3.953 kB / 1.096 GB, free: 8.777 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.3368, allocations: 12 kB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.3369, allocations: 24.42 kB / 1.096 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004949/0.3374, allocations: 309.5 kB / 1.097 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.3393, allocations: 1.529 MB / 1.098 GB, free: 6.758 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004612/0.3398, allocations: 232.6 kB / 1.098 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.34, allocations: 116.8 kB / 1.098 GB, free: 6.406 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001483/0.3401, allocations: 85.09 kB / 1.099 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.3402, allocations: 38.56 kB / 1.099 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=18): time 1.633e-06/0.3402, allocations: 0 / 1.099 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001388/0.3416, allocations: 0.7943 MB / 1.099 GB, free: 5.414 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.3416, allocations: 59.34 kB / 1.099 GB, free: 5.344 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.3419, allocations: 191.2 kB / 1.1 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.3419, allocations: 29.7 kB / 1.1 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.342, allocations: 168.1 kB / 1.1 GB, free: 4.945 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.975e-05/0.3421, allocations: 67.44 kB / 1.1 GB, free: 4.879 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.3422, allocations: 65.62 kB / 1.1 GB, free: 4.809 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3423, allocations: 330.8 kB / 1.1 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.3425, allocations: 115.9 kB / 1.1 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.3428, allocations: 169.9 kB / 1.1 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004186/0.3432, allocations: 296.4 kB / 1.101 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3432, allocations: 0 / 1.101 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000814/0.344, allocations: 423.2 kB / 1.101 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.3441, allocations: 4 kB / 1.101 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.3441, allocations: 4 kB / 1.101 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000479/0.3446, allocations: 92.77 kB / 1.101 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.3448, allocations: 64.02 kB / 1.101 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/0.3469, allocations: 1.872 MB / 1.103 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.3472, allocations: 19.92 kB / 1.103 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.3472, allocations: 15.98 kB / 1.103 GB, free: 1.23 MB / 0.8575 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.0001849/0.3474, allocations: 157.7 kB / 1.103 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.926e-05/0.3475, allocations: 19.97 kB / 1.103 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004883/0.348, allocations: 295.4 kB / 1.104 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.348, allocations: 0 / 1.104 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-06/0.348, allocations: 0 / 1.104 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.348, allocations: 3.938 kB / 1.104 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009561/0.349, allocations: 0.7108 MB / 1.104 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.349, allocations: 3.938 kB / 1.104 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.3493, allocations: 55.91 kB / 1.104 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.3493, allocations: 3.984 kB / 1.104 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.3493, allocations: 15.88 kB / 1.104 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3493, allocations: 0 / 1.104 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3493, allocations: 128 / 1.104 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006239/0.35, allocations: 0.5146 MB / 1.105 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.3501, allocations: 128.9 kB / 1.105 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.875e-05/0.3502, allocations: 8 kB / 1.105 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.3503, allocations: 11.98 kB / 1.105 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.292e-05/0.3504, allocations: 11.98 kB / 1.105 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.3504, allocations: 8 kB / 1.105 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001429/0.3506, allocations: 144.1 kB / 1.105 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3506, allocations: 0 / 1.105 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003873/0.351, allocations: 68.06 kB / 1.105 GB, free: 14.97 MB / 0.8731 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.0001766/0.3511, allocations: 107.2 kB / 1.105 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007953/0.3519, allocations: 431.8 kB / 1.106 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.352, allocations: 384 / 1.106 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001797/0.3522, allocations: 127.8 kB / 1.106 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.3526, allocations: 36.98 kB / 1.106 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.3539, allocations: 0.6324 MB / 1.107 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.3543, allocations: 0.7716 MB / 1.107 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000183/0.3545, allocations: 57.89 kB / 1.107 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.455e-05/0.3546, allocations: 19.44 kB / 1.107 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of SimCode: time 9.32e-07/0.3546, allocations: 4 kB / 1.107 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of Templates: time 0.006625/0.3613, allocations: 2.834 MB / 1.11 GB, free: 9.906 MB / 0.8731 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches