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.292/2.292, allocations: 390.5 MB / 398 MB, free: 10.96 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.001495/0.001495, allocations: 189.9 kB / 491.2 MB, free: 1.594 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.533/1.533, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001215/0.001215, allocations: 83.97 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.234e-05/2.229e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2982, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9856/1.284, allocations: 176.5 MB / 1.385 GB, free: 17.28 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/1.284, allocations: 102.8 kB / 1.385 GB, free: 17.26 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04554/1.33, allocations: 21.12 MB / 1.405 GB, free: 21.48 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.613e-06/1.33, allocations: 0 / 1.405 GB, free: 21.48 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.643e-05/1.33, allocations: 4 kB / 1.405 GB, free: 21.47 MB / 0.8386 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.0008106/1.331, allocations: 0.519 MB / 1.406 GB, free: 20.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/1.331, allocations: 12.03 kB / 1.406 GB, free: 20.92 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007646/1.332, allocations: 91.61 kB / 1.406 GB, free: 20.83 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/1.332, allocations: 260.3 kB / 1.406 GB, free: 20.55 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/1.332, allocations: 4 kB / 1.406 GB, free: 20.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.617e-05/1.332, allocations: 12 kB / 1.406 GB, free: 20.54 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000329/1.332, allocations: 227.9 kB / 1.406 GB, free: 20.39 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004125/1.333, allocations: 334.9 kB / 1.407 GB, free: 20.12 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/1.333, allocations: 0 / 1.407 GB, free: 20.12 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/1.333, allocations: 3.938 kB / 1.407 GB, free: 20.11 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.538e-05/1.333, allocations: 24.38 kB / 1.407 GB, free: 20.09 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/1.334, allocations: 1.471 MB / 1.408 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/1.335, allocations: 214.9 kB / 1.408 GB, free: 18.49 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/1.335, allocations: 111.5 kB / 1.409 GB, free: 18.41 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/1.335, allocations: 89.09 kB / 1.409 GB, free: 18.31 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/1.335, allocations: 38.56 kB / 1.409 GB, free: 18.27 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.192e-06/1.335, allocations: 0 / 1.409 GB, free: 18.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.001148/1.336, allocations: 0.7108 MB / 1.409 GB, free: 17.63 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/1.336, allocations: 55.41 kB / 1.409 GB, free: 17.56 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/1.336, allocations: 162.1 kB / 1.41 GB, free: 17.42 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/1.336, allocations: 25.7 kB / 1.41 GB, free: 17.39 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.767e-05/1.336, allocations: 165.6 kB / 1.41 GB, free: 17.23 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/1.336, allocations: 60.17 kB / 1.41 GB, free: 17.18 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-05/1.336, allocations: 0 / 1.41 GB, free: 17.18 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000106/1.337, allocations: 328.6 kB / 1.41 GB, free: 16.86 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/1.337, allocations: 103 kB / 1.41 GB, free: 16.8 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/1.337, allocations: 163.3 kB / 1.41 GB, free: 16.66 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002629/1.337, allocations: 157.8 kB / 1.411 GB, free: 16.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/1.337, allocations: 4 kB / 1.411 GB, free: 16.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006355/1.338, allocations: 399.8 kB / 1.411 GB, free: 16.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/1.338, allocations: 8 kB / 1.411 GB, free: 16.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/1.338, allocations: 0 / 1.411 GB, free: 16.22 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003127/1.338, allocations: 88.84 kB / 1.411 GB, free: 16.15 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/1.338, allocations: 59.39 kB / 1.411 GB, free: 16.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/1.34, allocations: 1.667 MB / 1.413 GB, free: 14.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/1.34, allocations: 11.97 kB / 1.413 GB, free: 14.47 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/1.34, allocations: 11.44 kB / 1.413 GB, free: 14.46 MB / 0.8386 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 9.138e-05/1.34, allocations: 112.9 kB / 1.413 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.79e-05/1.34, allocations: 11.81 kB / 1.413 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000483/1.341, allocations: 297 kB / 1.413 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/1.341, allocations: 3.984 kB / 1.413 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/1.341, allocations: 4 kB / 1.413 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/1.341, allocations: 0 / 1.413 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000826/1.341, allocations: 0.6564 MB / 1.414 GB, free: 13.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/1.341, allocations: 0 / 1.414 GB, free: 13.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002847/1.342, allocations: 67.39 kB / 1.414 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/1.342, allocations: 0 / 1.414 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/1.342, allocations: 4 kB / 1.414 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/1.342, allocations: 0 / 1.414 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/1.342, allocations: 4 kB / 1.414 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006463/1.342, allocations: 0.5385 MB / 1.414 GB, free: 13.01 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.709e-05/1.343, allocations: 112 kB / 1.414 GB, free: 12.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.096e-05/1.343, allocations: 7.5 kB / 1.414 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/1.343, allocations: 12 kB / 1.415 GB, free: 12.87 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.024e-05/1.343, allocations: 15.98 kB / 1.415 GB, free: 12.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/1.343, allocations: 4 kB / 1.415 GB, free: 12.85 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001021/1.343, allocations: 134.1 kB / 1.415 GB, free: 12.74 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.343, allocations: 0 / 1.415 GB, free: 12.74 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003616/1.343, allocations: 75.75 kB / 1.415 GB, free: 12.67 MB / 0.8386 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.0001885/1.343, allocations: 123 kB / 1.415 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006049/1.344, allocations: 385.2 kB / 1.415 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.344, allocations: 0 / 1.415 GB, free: 12.23 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001512/1.344, allocations: 126.2 kB / 1.415 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/1.345, allocations: 23.55 kB / 1.415 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000973/1.346, allocations: 495.1 kB / 1.416 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/1.346, allocations: 0.7819 MB / 1.417 GB, free: 10.86 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001708/1.346, allocations: 62.02 kB / 1.417 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.296e-05/1.346, allocations: 15.44 kB / 1.417 GB, free: 10.78 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.346, allocations: 0 / 1.417 GB, free: 10.78 MB / 0.8386 GB Notification: Performance of Templates: time 0.005331/1.352, allocations: 2.418 MB / 1.419 GB, free: 8.395 MB / 0.8386 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