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.286/2.286, allocations: 390.3 MB / 402.8 MB, free: 6.633 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.001205/0.001205, allocations: 180.8 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.0008371/0.000837, allocations: 101.3 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.681e-05/3.684e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3347, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.041/1.376, allocations: 177.2 MB / 1.392 GB, free: 10.64 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/1.376, allocations: 96.3 kB / 1.392 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.05269/1.429, allocations: 21.19 MB / 1.413 GB, free: 8.641 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.523e-06/1.429, allocations: 0 / 1.413 GB, free: 8.641 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.68e-05/1.429, allocations: 4 kB / 1.413 GB, free: 8.637 MB / 0.8698 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.001134/1.43, allocations: 0.5095 MB / 1.413 GB, free: 8.102 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/1.43, allocations: 15.97 kB / 1.413 GB, free: 8.086 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009883/1.431, allocations: 103.5 kB / 1.413 GB, free: 7.984 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005543/1.432, allocations: 255.9 kB / 1.413 GB, free: 7.715 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/1.432, allocations: 11.88 kB / 1.413 GB, free: 7.707 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.159e-05/1.432, allocations: 22.94 kB / 1.413 GB, free: 7.691 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006587/1.432, allocations: 363.5 kB / 1.414 GB, free: 7.402 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/1.432, allocations: 0 / 1.414 GB, free: 7.402 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.566e-05/1.432, allocations: 10.62 kB / 1.414 GB, free: 7.398 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.898e-05/1.433, allocations: 20.42 kB / 1.414 GB, free: 7.379 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004794/1.433, allocations: 307.7 kB / 1.414 GB, free: 7.176 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00208/1.435, allocations: 1.53 MB / 1.416 GB, free: 5.656 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004362/1.436, allocations: 220.3 kB / 1.416 GB, free: 5.496 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/1.436, allocations: 122.2 kB / 1.416 GB, free: 5.414 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001657/1.436, allocations: 81.11 kB / 1.416 GB, free: 5.316 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/1.436, allocations: 46.41 kB / 1.416 GB, free: 5.262 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=18): time 2.284e-06/1.436, allocations: 0 / 1.416 GB, free: 5.262 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19): time 0.001228/1.437, allocations: 0.6957 MB / 1.417 GB, free: 4.652 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/1.437, allocations: 55.41 kB / 1.417 GB, free: 4.586 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/1.437, allocations: 169.4 kB / 1.417 GB, free: 4.434 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/1.437, allocations: 31.95 kB / 1.417 GB, free: 4.402 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.529e-05/1.438, allocations: 156.4 kB / 1.417 GB, free: 4.258 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.477e-05/1.438, allocations: 74.31 kB / 1.417 GB, free: 4.195 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.446e-05/1.438, allocations: 3.25 kB / 1.417 GB, free: 4.195 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001335/1.438, allocations: 325.8 kB / 1.418 GB, free: 3.875 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/1.438, allocations: 109.7 kB / 1.418 GB, free: 3.805 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/1.438, allocations: 169.1 kB / 1.418 GB, free: 3.66 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/1.438, allocations: 136.1 kB / 1.418 GB, free: 3.57 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/1.438, allocations: 7.922 kB / 1.418 GB, free: 3.562 MB / 0.8698 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007019/1.439, allocations: 410 kB / 1.418 GB, free: 3.25 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/1.439, allocations: 8 kB / 1.418 GB, free: 3.242 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/1.439, allocations: 0 / 1.418 GB, free: 3.242 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003635/1.44, allocations: 94.8 kB / 1.418 GB, free: 3.16 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/1.44, allocations: 59.39 kB / 1.418 GB, free: 3.105 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00194/1.442, allocations: 1.718 MB / 1.42 GB, free: 1.434 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/1.442, allocations: 15.77 kB / 1.42 GB, free: 1.422 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/1.442, allocations: 11.88 kB / 1.42 GB, free: 1.414 MB / 0.8698 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.0001116/1.442, allocations: 108.7 kB / 1.42 GB, free: 1.305 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.237e-05/1.442, allocations: 22.73 kB / 1.42 GB, free: 1.285 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004973/1.443, allocations: 301.8 kB / 1.421 GB, free: 1.062 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/1.443, allocations: 3.984 kB / 1.421 GB, free: 1.059 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/1.443, allocations: 192 / 1.421 GB, free: 1.059 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.373e-06/1.443, allocations: 7.953 kB / 1.421 GB, free: 1.051 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008969/1.444, allocations: 0.6939 MB / 1.421 GB, free: 436 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/1.444, allocations: 7.938 kB / 1.421 GB, free: 428 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/1.444, allocations: 59.45 kB / 1.421 GB, free: 372 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/1.444, allocations: 8.062 kB / 1.421 GB, free: 364 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/1.444, allocations: 3.953 kB / 1.421 GB, free: 360 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/1.444, allocations: 4 kB / 1.421 GB, free: 356 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/1.444, allocations: 0 / 1.421 GB, free: 356 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005951/1.445, allocations: 0.5328 MB / 1.422 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/1.445, allocations: 116 kB / 1.422 GB, free: 15.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.037e-05/1.445, allocations: 3.188 kB / 1.422 GB, free: 15.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/1.445, allocations: 14.55 kB / 1.422 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/1.445, allocations: 11.55 kB / 1.422 GB, free: 15.76 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/1.445, allocations: 11.98 kB / 1.422 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.000125/1.445, allocations: 136.1 kB / 1.422 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.5e-07/1.445, allocations: 0 / 1.422 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000389/1.446, allocations: 75.75 kB / 1.422 GB, free: 15.57 MB / 0.8855 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.0002138/1.446, allocations: 130.7 kB / 1.422 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007026/1.447, allocations: 417 kB / 1.423 GB, free: 15.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/1.447, allocations: 0 / 1.423 GB, free: 15.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001642/1.447, allocations: 126.7 kB / 1.423 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/1.447, allocations: 35.38 kB / 1.423 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/1.448, allocations: 0.4885 MB / 1.423 GB, free: 14.52 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/1.448, allocations: 0.7782 MB / 1.424 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.000191/1.449, allocations: 54.03 kB / 1.424 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.051e-05/1.449, allocations: 19.44 kB / 1.424 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of SimCode: time 3.1e-07/1.449, allocations: 0 / 1.424 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of Templates: time 0.006434/1.455, allocations: 2.579 MB / 1.427 GB, free: 11.1 MB / 0.8855 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