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.294/2.294, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001335/0.001335, allocations: 176.9 kB / 487.4 MB, free: 5.023 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.488/1.488, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001378/0.001377, allocations: 103.8 kB / 0.9219 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.865e-05/1.869e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2731, allocations: 142.3 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.039/1.312, allocations: 175.7 MB / 1.378 GB, free: 18.36 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003687/1.313, allocations: 98.03 kB / 1.378 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.044/1.357, allocations: 21.12 MB / 1.398 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.224e-06/1.357, allocations: 0 / 1.398 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.776e-05/1.357, allocations: 19.44 kB / 1.398 GB, free: 26.2 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.0009554/1.358, allocations: 0.5092 MB / 1.399 GB, free: 25.75 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/1.358, allocations: 11.47 kB / 1.399 GB, free: 25.75 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008989/1.359, allocations: 97.45 kB / 1.399 GB, free: 25.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/1.359, allocations: 260.5 kB / 1.399 GB, free: 25.46 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/1.359, allocations: 7.438 kB / 1.399 GB, free: 25.46 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.313e-05/1.359, allocations: 15.3 kB / 1.399 GB, free: 25.46 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003552/1.36, allocations: 221.7 kB / 1.399 GB, free: 25.43 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004577/1.36, allocations: 331.6 kB / 1.4 GB, free: 25.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/1.36, allocations: 3.984 kB / 1.4 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.087e-05/1.36, allocations: 4 kB / 1.4 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.67e-05/1.36, allocations: 19.8 kB / 1.4 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/1.362, allocations: 1.472 MB / 1.401 GB, free: 24.07 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/1.362, allocations: 217 kB / 1.401 GB, free: 24.02 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/1.362, allocations: 111.2 kB / 1.401 GB, free: 24 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/1.363, allocations: 88.88 kB / 1.402 GB, free: 23.91 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/1.363, allocations: 34.84 kB / 1.402 GB, free: 23.87 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/1.363, allocations: 0 / 1.402 GB, free: 23.87 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.001164/1.364, allocations: 0.7158 MB / 1.402 GB, free: 23.48 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.984e-05/1.364, allocations: 51.41 kB / 1.402 GB, free: 23.42 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/1.364, allocations: 166.6 kB / 1.402 GB, free: 23.31 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/1.364, allocations: 25.7 kB / 1.402 GB, free: 23.28 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.595e-05/1.364, allocations: 163.5 kB / 1.403 GB, free: 23.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.716e-05/1.364, allocations: 66.03 kB / 1.403 GB, free: 23.1 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.376e-05/1.364, allocations: 0 / 1.403 GB, free: 23.1 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001178/1.364, allocations: 325.9 kB / 1.403 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/1.364, allocations: 102.1 kB / 1.403 GB, free: 22.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/1.365, allocations: 162.5 kB / 1.403 GB, free: 22.69 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002884/1.365, allocations: 152.4 kB / 1.403 GB, free: 22.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/1.365, allocations: 4 kB / 1.403 GB, free: 22.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006645/1.366, allocations: 404.7 kB / 1.404 GB, free: 22.53 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/1.366, allocations: 3.844 kB / 1.404 GB, free: 22.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/1.366, allocations: 3.844 kB / 1.404 GB, free: 22.53 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003192/1.366, allocations: 95.3 kB / 1.404 GB, free: 22.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/1.366, allocations: 54.39 kB / 1.404 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/1.368, allocations: 1.659 MB / 1.406 GB, free: 21.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/1.368, allocations: 19.42 kB / 1.406 GB, free: 21.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/1.368, allocations: 7.5 kB / 1.406 GB, free: 21.14 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 0.0001365/1.368, allocations: 121.2 kB / 1.406 GB, free: 21.02 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/1.368, allocations: 19.03 kB / 1.406 GB, free: 21.01 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005324/1.369, allocations: 294.5 kB / 1.406 GB, free: 20.92 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/1.369, allocations: 3.719 kB / 1.406 GB, free: 20.92 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/1.369, allocations: 0 / 1.406 GB, free: 20.92 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/1.369, allocations: 0 / 1.406 GB, free: 20.92 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008946/1.37, allocations: 0.6663 MB / 1.407 GB, free: 20.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.37, allocations: 0 / 1.407 GB, free: 20.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/1.37, allocations: 57.11 kB / 1.407 GB, free: 20.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.914e-06/1.37, allocations: 3.75 kB / 1.407 GB, free: 20.52 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/1.37, allocations: 0 / 1.407 GB, free: 20.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/1.37, allocations: 3.969 kB / 1.407 GB, free: 20.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/1.37, allocations: 3.938 kB / 1.407 GB, free: 20.51 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006983/1.371, allocations: 0.5312 MB / 1.407 GB, free: 20.11 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/1.371, allocations: 115.8 kB / 1.407 GB, free: 19.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/1.371, allocations: 4 kB / 1.407 GB, free: 19.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/1.371, allocations: 7.984 kB / 1.407 GB, free: 19.97 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.274e-05/1.371, allocations: 16 kB / 1.407 GB, free: 19.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/1.371, allocations: 10.94 kB / 1.407 GB, free: 19.95 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001202/1.371, allocations: 135 kB / 1.408 GB, free: 19.83 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.371, allocations: 0 / 1.408 GB, free: 19.83 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004355/1.372, allocations: 64 kB / 1.408 GB, free: 19.77 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.0002516/1.372, allocations: 123.1 kB / 1.408 GB, free: 19.64 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006604/1.373, allocations: 399.5 kB / 1.408 GB, free: 19.32 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/1.373, allocations: 0 / 1.408 GB, free: 19.32 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/1.373, allocations: 116.8 kB / 1.408 GB, free: 19.24 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/1.373, allocations: 23.98 kB / 1.408 GB, free: 19.23 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/1.374, allocations: 487.5 kB / 1.409 GB, free: 18.77 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/1.375, allocations: 0.7812 MB / 1.409 GB, free: 17.96 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001948/1.375, allocations: 58.02 kB / 1.41 GB, free: 17.91 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.492e-05/1.375, allocations: 19.44 kB / 1.41 GB, free: 17.89 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.375, allocations: 3.938 kB / 1.41 GB, free: 17.88 MB / 0.8386 GB Notification: Performance of Templates: time 0.00618/1.381, allocations: 2.417 MB / 1.412 GB, free: 15.5 MB / 0.8386 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