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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.379/2.379, allocations: 393.5 MB / 408.4 MB, free: 10.93 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 195.8 kB / 0.4902 GB, free: 2.109 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.759/1.759, allocations: 223.2 MB / 0.7992 GB, free: 14.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009409/0.0009411, allocations: 96.66 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.0003919, allocations: 10.19 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3333, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2208/0.5542, allocations: 177.2 MB / 1.402 GB, free: 8.277 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.5546, allocations: 107.9 kB / 1.402 GB, free: 8.172 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.05212/0.6067, allocations: 21.32 MB / 1.423 GB, free: 2.609 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.964e-06/0.6068, allocations: 0 / 1.423 GB, free: 2.609 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 2.603e-05/0.6068, allocations: 8 kB / 1.423 GB, free: 2.602 MB / 0.9167 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.001161/0.608, allocations: 0.534 MB / 1.424 GB, free: 2.02 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.6081, allocations: 8.562 kB / 1.424 GB, free: 2.012 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000961/0.609, allocations: 95.61 kB / 1.424 GB, free: 1.918 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005048/0.6096, allocations: 263.9 kB / 1.424 GB, free: 1.621 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.6096, allocations: 16.44 kB / 1.424 GB, free: 1.605 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/0.6097, allocations: 27.98 kB / 1.424 GB, free: 1.578 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006286/0.6103, allocations: 361 kB / 1.424 GB, free: 1.195 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.6103, allocations: 0 / 1.424 GB, free: 1.195 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.671e-05/0.6104, allocations: 11.98 kB / 1.424 GB, free: 1.184 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.279e-05/0.6104, allocations: 24.36 kB / 1.424 GB, free: 1.16 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005052/0.6109, allocations: 317.5 kB / 1.425 GB, free: 0.8516 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7441/1.355, allocations: 1.51 MB / 1.426 GB, free: 183 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004652/1.356, allocations: 234.6 kB / 1.426 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001549/1.356, allocations: 88.36 kB / 1.427 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/1.356, allocations: 34.91 kB / 1.427 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=18): time 3.266e-06/1.356, allocations: 1.312 kB / 1.427 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=19): time 0.001352/1.357, allocations: 0.7866 MB / 1.427 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/1.357, allocations: 53.75 kB / 1.427 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/1.357, allocations: 173.8 kB / 1.428 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/1.357, allocations: 34.48 kB / 1.428 GB, free: 182.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 9.118e-05/1.357, allocations: 161.7 kB / 1.428 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 5.599e-05/1.358, allocations: 71.02 kB / 1.428 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.387e-05/1.358, allocations: 4.812 kB / 1.428 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.779e-05/1.358, allocations: 329.5 kB / 1.428 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/1.358, allocations: 113.6 kB / 1.428 GB, free: 181.9 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/1.358, allocations: 168.4 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/1.358, allocations: 135.7 kB / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/1.358, allocations: 0 / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006469/1.359, allocations: 414.2 kB / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/1.359, allocations: 6.75 kB / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/1.359, allocations: 1.156 kB / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003826/1.359, allocations: 100.8 kB / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/1.36, allocations: 49.52 kB / 1.429 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/1.361, allocations: 1.762 MB / 1.431 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002173/1.361, allocations: 19.27 kB / 1.431 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/1.361, allocations: 18.45 kB / 1.431 GB, free: 180.5 MB / 0.9167 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 (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.0001692/1.362, allocations: 162 kB / 1.431 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.528e-05/1.362, allocations: 16.66 kB / 1.431 GB, free: 180.4 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004827/1.362, allocations: 296 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/1.362, allocations: 6.156 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.62e-07/1.362, allocations: 3.969 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/1.362, allocations: 3.375 kB / 1.431 GB, free: 180.3 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000979/1.363, allocations: 0.7015 MB / 1.432 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.363, allocations: 0 / 1.432 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003182/1.364, allocations: 60.05 kB / 1.432 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/1.364, allocations: 3 kB / 1.432 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/1.364, allocations: 6.484 kB / 1.432 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/1.364, allocations: 4.219 kB / 1.432 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.364, allocations: 3.031 kB / 1.432 GB, free: 180 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006812/1.364, allocations: 0.5316 MB / 1.433 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/1.364, allocations: 118 kB / 1.433 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/1.364, allocations: 6.281 kB / 1.433 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/1.365, allocations: 13.69 kB / 1.433 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.291e-05/1.365, allocations: 20.73 kB / 1.433 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/1.365, allocations: 4.688 kB / 1.433 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001678/1.365, allocations: 147.8 kB / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.61e-07/1.365, allocations: 2.656 kB / 1.433 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0004241/1.365, allocations: 77.67 kB / 1.433 GB, free: 179.6 MB / 0.9167 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 (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.0002152/1.366, allocations: 117.9 kB / 1.433 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0008495/1.366, allocations: 416.5 kB / 1.433 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/1.366, allocations: 0 / 1.433 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002037/1.367, allocations: 126.4 kB / 1.434 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/1.367, allocations: 31.33 kB / 1.434 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/1.368, allocations: 0.7592 MB / 1.434 GB, free: 179 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/1.369, allocations: 0.7785 MB / 1.435 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002484/1.369, allocations: 60.36 kB / 1.435 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/1.369, allocations: 25.38 kB / 1.435 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of SimCode: time 2.2e-07/1.369, allocations: 0 / 1.435 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of Templates: time 0.007325/1.376, allocations: 2.556 MB / 1.438 GB, free: 178.2 MB / 0.9167 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","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches