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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.483/2.483, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001147/0.001147, allocations: 179.3 kB / 498.1 MB, free: 5.773 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.699/1.699, allocations: 223.2 MB / 0.7948 GB, free: 18.93 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.0009575/0.0009576, allocations: 98.31 kB / 0.9346 GB, free: 7.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004729/0.0004731, allocations: 13.38 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3377, allocations: 142.3 MB / 1.223 GB, free: 89.64 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2275/0.5653, allocations: 176.4 MB / 1.395 GB, free: 8.988 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/0.5656, allocations: 107.9 kB / 1.395 GB, free: 8.883 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.7063/1.272, allocations: 21.32 MB / 1.416 GB, free: 175 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.174e-06/1.272, allocations: 1.156 kB / 1.416 GB, free: 175 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.754e-05/1.272, allocations: 3.688 kB / 1.416 GB, free: 175 MB / 0.9011 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/1.273, allocations: 0.5285 MB / 1.417 GB, free: 174.5 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/1.273, allocations: 12.88 kB / 1.417 GB, free: 174.5 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009884/1.274, allocations: 98.66 kB / 1.417 GB, free: 174.5 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005192/1.275, allocations: 260.8 kB / 1.417 GB, free: 174.3 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/1.275, allocations: 18.14 kB / 1.417 GB, free: 174.3 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.706e-05/1.275, allocations: 22 kB / 1.417 GB, free: 174.3 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006821/1.276, allocations: 365.6 kB / 1.417 GB, free: 174.2 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/1.276, allocations: 1.375 kB / 1.417 GB, free: 174.2 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/1.276, allocations: 7.797 kB / 1.417 GB, free: 174.2 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.654e-05/1.276, allocations: 22.97 kB / 1.417 GB, free: 174.2 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005677/1.276, allocations: 310.8 kB / 1.418 GB, free: 174.2 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/1.278, allocations: 1.528 MB / 1.419 GB, free: 173.1 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004747/1.279, allocations: 230.6 kB / 1.419 GB, free: 173 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001435/1.279, allocations: 86.52 kB / 1.419 GB, free: 173 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/1.279, allocations: 35.73 kB / 1.419 GB, free: 172.9 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=18): time 1.954e-06/1.279, allocations: 4 kB / 1.419 GB, free: 172.9 MB / 0.9011 GB Notification: Performance of matching and sorting (n=19): time 0.001448/1.28, allocations: 0.7905 MB / 1.42 GB, free: 172.6 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/1.28, allocations: 53.56 kB / 1.42 GB, free: 172.5 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/1.281, allocations: 176.3 kB / 1.42 GB, free: 172.4 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/1.281, allocations: 31.41 kB / 1.421 GB, free: 172.4 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/1.281, allocations: 161.8 kB / 1.421 GB, free: 172.3 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 6.333e-05/1.281, allocations: 62.94 kB / 1.421 GB, free: 172.2 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.661e-05/1.281, allocations: 5.906 kB / 1.421 GB, free: 172.2 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 9.691e-05/1.281, allocations: 332.3 kB / 1.421 GB, free: 171.9 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/1.281, allocations: 112.4 kB / 1.421 GB, free: 171.9 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/1.282, allocations: 163 kB / 1.421 GB, free: 171.9 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/1.282, allocations: 136.5 kB / 1.421 GB, free: 171.9 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.282, allocations: 5.328 kB / 1.421 GB, free: 171.9 MB / 0.9011 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008223/1.283, allocations: 404.6 kB / 1.422 GB, free: 171.8 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/1.283, allocations: 6.594 kB / 1.422 GB, free: 171.8 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/1.283, allocations: 9.641 kB / 1.422 GB, free: 171.8 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004162/1.283, allocations: 101 kB / 1.422 GB, free: 171.8 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/1.283, allocations: 52.5 kB / 1.422 GB, free: 171.8 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/1.285, allocations: 1.761 MB / 1.424 GB, free: 170.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/1.285, allocations: 18.28 kB / 1.424 GB, free: 170.5 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/1.285, allocations: 11.88 kB / 1.424 GB, free: 170.5 MB / 0.9011 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.0001949/1.286, allocations: 159.6 kB / 1.424 GB, free: 170.4 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.451e-05/1.286, allocations: 17.03 kB / 1.424 GB, free: 170.4 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004857/1.286, allocations: 299.7 kB / 1.424 GB, free: 170.3 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.286, allocations: 5.844 kB / 1.424 GB, free: 170.3 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/1.286, allocations: 1.031 kB / 1.424 GB, free: 170.3 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/1.286, allocations: 3.953 kB / 1.424 GB, free: 170.3 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009739/1.287, allocations: 0.7062 MB / 1.425 GB, free: 170 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/1.287, allocations: 1.25 kB / 1.425 GB, free: 170 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/1.288, allocations: 54.08 kB / 1.425 GB, free: 170 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/1.288, allocations: 1.781 kB / 1.425 GB, free: 170 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/1.288, allocations: 9.578 kB / 1.425 GB, free: 170 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/1.288, allocations: 5.875 kB / 1.425 GB, free: 170 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.288, allocations: 1.969 kB / 1.425 GB, free: 170 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006458/1.288, allocations: 0.5306 MB / 1.425 GB, free: 169.8 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/1.288, allocations: 115.5 kB / 1.426 GB, free: 169.7 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/1.288, allocations: 14.59 kB / 1.426 GB, free: 169.7 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/1.289, allocations: 10.52 kB / 1.426 GB, free: 169.7 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.057e-05/1.289, allocations: 12.31 kB / 1.426 GB, free: 169.7 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/1.289, allocations: 5.469 kB / 1.426 GB, free: 169.7 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001183/1.289, allocations: 143.5 kB / 1.426 GB, free: 169.6 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.21e-07/1.289, allocations: 1.312 kB / 1.426 GB, free: 169.6 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004682/1.289, allocations: 84.95 kB / 1.426 GB, free: 169.6 MB / 0.9011 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.0001903/1.289, allocations: 127.5 kB / 1.426 GB, free: 169.5 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0007175/1.29, allocations: 423.3 kB / 1.426 GB, free: 169.4 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/1.29, allocations: 3.438 kB / 1.426 GB, free: 169.4 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.000163/1.29, allocations: 120.4 kB / 1.427 GB, free: 169.4 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/1.291, allocations: 38.28 kB / 1.427 GB, free: 169.4 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/1.292, allocations: 0.7562 MB / 1.427 GB, free: 168.9 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/1.292, allocations: 0.778 MB / 1.428 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001928/1.292, allocations: 56.53 kB / 1.428 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.379e-05/1.293, allocations: 19.36 kB / 1.428 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of SimCode: time 3.01e-07/1.293, allocations: 0 / 1.428 GB, free: 168.2 MB / 0.9011 GB Notification: Performance of Templates: time 0.006284/1.299, allocations: 2.557 MB / 1.431 GB, free: 168 MB / 0.9011 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","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches