Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.378/1.378, allocations: 249.3 MB / 261.8 MB, free: 5.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009692/0.0009692, allocations: 168.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 205.2 MB / 0.572 GB, free: 10.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008419/0.0008423, allocations: 93.39 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.855e-05/3.856e-05, allocations: 4 kB / 0.788 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2556, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.816/1.072, allocations: 158.5 MB / 1.047 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/1.072, allocations: 95.75 kB / 1.047 GB, free: 9.973 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.04029/1.112, allocations: 16.46 MB / 1.063 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.723e-06/1.112, allocations: 4 kB / 1.063 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.865e-05/1.112, allocations: 4 kB / 1.063 GB, free: 12.14 MB / 0.6823 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.0009146/1.113, allocations: 0.5179 MB / 1.063 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/1.113, allocations: 12.03 kB / 1.063 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008051/1.114, allocations: 95.23 kB / 1.063 GB, free: 11.49 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/1.115, allocations: 256.6 kB / 1.064 GB, free: 11.22 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.913e-05/1.115, allocations: 23.11 kB / 1.064 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.842e-05/1.115, allocations: 22.06 kB / 1.064 GB, free: 11.19 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005691/1.115, allocations: 358 kB / 1.064 GB, free: 10.9 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/1.115, allocations: 3.984 kB / 1.064 GB, free: 10.9 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/1.115, allocations: 6.688 kB / 1.064 GB, free: 10.9 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.775e-05/1.115, allocations: 19.94 kB / 1.064 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004501/1.116, allocations: 302.4 kB / 1.064 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/1.118, allocations: 1.532 MB / 1.066 GB, free: 9.16 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004316/1.118, allocations: 234 kB / 1.066 GB, free: 8.988 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/1.118, allocations: 114.8 kB / 1.066 GB, free: 8.914 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001618/1.119, allocations: 97.08 kB / 1.066 GB, free: 8.801 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/1.119, allocations: 30.56 kB / 1.066 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.754e-06/1.119, allocations: 0 / 1.066 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19): time 0.0012/1.12, allocations: 0.6917 MB / 1.067 GB, free: 8.152 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/1.12, allocations: 51.41 kB / 1.067 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/1.12, allocations: 175.6 kB / 1.067 GB, free: 7.934 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/1.12, allocations: 32.83 kB / 1.067 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/1.12, allocations: 163.8 kB / 1.067 GB, free: 7.75 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.494e-05/1.12, allocations: 66.03 kB / 1.067 GB, free: 7.695 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.741e-05/1.12, allocations: 7.625 kB / 1.067 GB, free: 7.691 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001442/1.12, allocations: 325.4 kB / 1.068 GB, free: 7.371 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/1.121, allocations: 108.2 kB / 1.068 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/1.121, allocations: 161.4 kB / 1.068 GB, free: 7.164 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/1.121, allocations: 136.2 kB / 1.068 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/1.121, allocations: 0 / 1.068 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006872/1.122, allocations: 411.3 kB / 1.068 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/1.122, allocations: 4 kB / 1.068 GB, free: 6.754 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/1.122, allocations: 0 / 1.068 GB, free: 6.754 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003724/1.122, allocations: 101.5 kB / 1.069 GB, free: 6.668 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002591/1.122, allocations: 47.91 kB / 1.069 GB, free: 6.621 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001754/1.124, allocations: 1.735 MB / 1.07 GB, free: 4.938 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/1.124, allocations: 15.92 kB / 1.07 GB, free: 4.926 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/1.124, allocations: 7.25 kB / 1.07 GB, free: 4.922 MB / 0.6823 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000106/1.125, allocations: 115.3 kB / 1.07 GB, free: 4.809 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-05/1.125, allocations: 15.81 kB / 1.07 GB, free: 4.793 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005127/1.125, allocations: 304.1 kB / 1.071 GB, free: 4.57 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/1.125, allocations: 4 kB / 1.071 GB, free: 4.566 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/1.125, allocations: 0 / 1.071 GB, free: 4.566 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/1.125, allocations: 3.984 kB / 1.071 GB, free: 4.562 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009316/1.126, allocations: 0.6986 MB / 1.071 GB, free: 3.93 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/1.126, allocations: 11.95 kB / 1.071 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003674/1.127, allocations: 51.91 kB / 1.071 GB, free: 3.871 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/1.127, allocations: 7.984 kB / 1.072 GB, free: 3.863 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/1.127, allocations: 7.562 kB / 1.072 GB, free: 3.859 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/1.127, allocations: 3.953 kB / 1.072 GB, free: 3.855 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/1.127, allocations: 0 / 1.072 GB, free: 3.855 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006528/1.127, allocations: 0.5299 MB / 1.072 GB, free: 3.414 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/1.127, allocations: 119.9 kB / 1.072 GB, free: 3.285 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.095e-05/1.127, allocations: 11.5 kB / 1.072 GB, free: 3.277 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/1.128, allocations: 11.42 kB / 1.072 GB, free: 3.27 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/1.128, allocations: 11.98 kB / 1.072 GB, free: 3.258 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/1.128, allocations: 7.438 kB / 1.072 GB, free: 3.254 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001283/1.128, allocations: 144.7 kB / 1.072 GB, free: 3.129 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.5e-07/1.128, allocations: 0 / 1.072 GB, free: 3.129 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004076/1.128, allocations: 82.06 kB / 1.072 GB, free: 3.059 MB / 0.6823 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002584/1.129, allocations: 122.6 kB / 1.073 GB, free: 2.934 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0007326/1.129, allocations: 420.6 kB / 1.073 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/1.129, allocations: 0 / 1.073 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001753/1.129, allocations: 118.7 kB / 1.073 GB, free: 2.516 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/1.13, allocations: 34.22 kB / 1.073 GB, free: 2.488 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/1.131, allocations: 496.9 kB / 1.074 GB, free: 2.023 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/1.131, allocations: 0.7808 MB / 1.074 GB, free: 1.227 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001794/1.132, allocations: 62.03 kB / 1.074 GB, free: 1.168 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.93e-05/1.132, allocations: 23.42 kB / 1.074 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of SimCode: time 2.6e-07/1.132, allocations: 0 / 1.074 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of Templates: time 0.006238/1.138, allocations: 2.565 MB / 1.077 GB, free: 14.61 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches