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.001217/0.001217, allocations: 109 kB / 16.41 MB, free: 6.492 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.001196/0.001196, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.134/2.134, allocations: 390.3 MB / 0.6655 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.91 kB / 0.9515 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.046/1.047, allocations: 140.4 MB / 1.089 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005187/1.053, allocations: 3.088 MB / 1.092 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002955/1.056, allocations: 1.72 MB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/1.056, allocations: 4.656 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001087/1.057, allocations: 347.3 kB / 1.094 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006205/1.057, allocations: 213.3 kB / 1.094 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005821/1.058, allocations: 179.2 kB / 1.094 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004557/1.059, allocations: 318.6 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004837/1.059, allocations: 234.5 kB / 1.095 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/1.059, allocations: 138.1 kB / 1.095 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003864/1.06, allocations: 166 kB / 1.095 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.168e-05/1.06, allocations: 21.09 kB / 1.095 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000555/1.06, allocations: 237.2 kB / 1.095 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001648/1.06, allocations: 105.4 kB / 1.095 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001617/1.061, allocations: 121.3 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007823/1.061, allocations: 426.4 kB / 1.096 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/1.061, allocations: 0.6875 kB / 1.096 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.433e-06/1.061, allocations: 0 / 1.096 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.826e-06/1.061, allocations: 1.031 kB / 1.096 GB, free: 1.23 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.001014/1.062, allocations: 0.5425 MB / 1.096 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/1.063, allocations: 13.95 kB / 1.096 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008074/1.063, allocations: 92.05 kB / 1.096 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/1.064, allocations: 265 kB / 1.097 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/1.064, allocations: 13.66 kB / 1.097 GB, free: 500 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/1.064, allocations: 26.47 kB / 1.097 GB, free: 492 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006735/1.064, allocations: 380.4 kB / 1.097 GB, free: 296 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/1.065, allocations: 4.594 kB / 1.097 GB, free: 292 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.683e-05/1.065, allocations: 10.92 kB / 1.097 GB, free: 284 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001143/1.065, allocations: 29.58 kB / 1.097 GB, free: 280 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005692/1.065, allocations: 310.1 kB / 1.097 GB, free: 168 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/1.067, allocations: 1.517 MB / 1.099 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005513/1.068, allocations: 239.9 kB / 1.099 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/1.068, allocations: 115.1 kB / 1.099 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001683/1.068, allocations: 86.56 kB / 1.099 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/1.068, allocations: 31.94 kB / 1.099 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 1.623e-06/1.068, allocations: 0.5625 kB / 1.099 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of matching and sorting (n=19): time 0.001606/1.07, allocations: 0.7953 MB / 1.1 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/1.07, allocations: 58.33 kB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/1.07, allocations: 198.3 kB / 1.1 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/1.07, allocations: 30.8 kB / 1.1 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000123/1.07, allocations: 158 kB / 1.1 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.134e-05/1.071, allocations: 74.53 kB / 1.101 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/1.071, allocations: 53.72 kB / 1.101 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001476/1.071, allocations: 336 kB / 1.101 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/1.071, allocations: 114.3 kB / 1.101 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/1.071, allocations: 169.2 kB / 1.101 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005006/1.072, allocations: 299.6 kB / 1.101 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/1.072, allocations: 0 / 1.101 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009659/1.073, allocations: 424.7 kB / 1.102 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/1.073, allocations: 6.062 kB / 1.102 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/1.073, allocations: 1.719 kB / 1.102 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004903/1.073, allocations: 96.62 kB / 1.102 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002798/1.074, allocations: 51.44 kB / 1.102 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/1.076, allocations: 1.876 MB / 1.104 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/1.076, allocations: 16.28 kB / 1.104 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/1.076, allocations: 12.11 kB / 1.104 GB, free: 11.25 MB / 0.8731 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.0002203/1.077, allocations: 156.3 kB / 1.104 GB, free: 11.11 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/1.077, allocations: 17.05 kB / 1.104 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006765/1.077, allocations: 303.1 kB / 1.104 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/1.077, allocations: 2.281 kB / 1.104 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-06/1.077, allocations: 0.5938 kB / 1.104 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/1.077, allocations: 5.891 kB / 1.104 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/1.078, allocations: 0.7017 MB / 1.105 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/1.078, allocations: 0 / 1.105 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/1.079, allocations: 58.19 kB / 1.105 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/1.079, allocations: 2.359 kB / 1.105 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.057e-05/1.079, allocations: 11.27 kB / 1.105 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.768e-06/1.079, allocations: 1.312 kB / 1.105 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.079, allocations: 1.609 kB / 1.105 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007634/1.08, allocations: 0.5154 MB / 1.106 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/1.08, allocations: 123.1 kB / 1.106 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/1.08, allocations: 11.03 kB / 1.106 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/1.08, allocations: 11.05 kB / 1.106 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.122e-05/1.08, allocations: 15.05 kB / 1.106 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/1.08, allocations: 3.625 kB / 1.106 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001571/1.08, allocations: 143.5 kB / 1.106 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/1.08, allocations: 0 / 1.106 GB, free: 9.969 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004226/1.081, allocations: 70.75 kB / 1.106 GB, free: 9.957 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.0001761/1.081, allocations: 108.9 kB / 1.106 GB, free: 9.859 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008557/1.082, allocations: 425.3 kB / 1.106 GB, free: 9.645 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/1.082, allocations: 4.312 kB / 1.106 GB, free: 9.641 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002004/1.082, allocations: 128.2 kB / 1.107 GB, free: 9.598 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/1.082, allocations: 45.12 kB / 1.107 GB, free: 9.574 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/1.084, allocations: 0.6509 MB / 1.107 GB, free: 9.168 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/1.084, allocations: 0.7721 MB / 1.108 GB, free: 8.461 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.398e-05/1.084, allocations: 22.8 kB / 1.108 GB, free: 8.453 MB / 0.8731 GB Notification: Performance of SimCode: time 5.11e-07/1.084, allocations: 5.125 kB / 1.108 GB, free: 8.449 MB / 0.8731 GB Notification: Performance of Templates: time 0.007938/1.092, allocations: 3.611 MB / 1.112 GB, free: 8.16 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/jenkins1/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