Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001887/0.001887, allocations: 115.5 kB / 17.08 MB, free: 5.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002275/0.002275, allocations: 194.2 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 222.9 MB / 245.7 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.987/2.987, allocations: 489.2 MB / 0.7687 GB, free: 4.004 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002284/0.002285, allocations: 71.89 kB / 1.103 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.176/1.178, allocations: 163.8 MB / 1.263 GB, free: 8.02 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004096/1.182, allocations: 2.635 MB / 1.265 GB, free: 6.258 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002274/1.185, allocations: 1.476 MB / 1.267 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/1.185, allocations: 3.688 kB / 1.267 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007893/1.186, allocations: 224.2 kB / 1.267 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005277/1.186, allocations: 189.3 kB / 1.267 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004352/1.187, allocations: 157.1 kB / 1.267 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003583/1.187, allocations: 240.5 kB / 1.267 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003667/1.187, allocations: 168.3 kB / 1.268 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/1.188, allocations: 106 kB / 1.268 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000309/1.188, allocations: 118.5 kB / 1.268 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/1.188, allocations: 14.78 kB / 1.268 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004672/1.188, allocations: 219.7 kB / 1.268 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.000107/1.189, allocations: 81.34 kB / 1.268 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001089/1.189, allocations: 91.44 kB / 1.268 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005593/1.189, allocations: 337.4 kB / 1.268 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/1.189, allocations: 0.7188 kB / 1.268 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.152e-06/1.189, allocations: 0 / 1.268 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.021e-06/1.189, allocations: 0 / 1.268 GB, free: 4.426 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007538/1.19, allocations: 0.4969 MB / 1.269 GB, free: 3.969 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/1.19, allocations: 9.594 kB / 1.269 GB, free: 3.969 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005959/1.191, allocations: 80.97 kB / 1.269 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/1.191, allocations: 234.2 kB / 1.269 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/1.191, allocations: 11.86 kB / 1.269 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/1.191, allocations: 18.62 kB / 1.269 GB, free: 3.715 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005088/1.192, allocations: 340.1 kB / 1.27 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/1.192, allocations: 4.828 kB / 1.27 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/1.192, allocations: 6.406 kB / 1.27 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.796e-05/1.192, allocations: 18.55 kB / 1.27 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004347/1.192, allocations: 256.5 kB / 1.27 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/1.193, allocations: 1.649 MB / 1.271 GB, free: 1.957 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005972/1.194, allocations: 409 kB / 1.272 GB, free: 1.672 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/1.194, allocations: 92.3 kB / 1.272 GB, free: 1.629 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/1.194, allocations: 87.64 kB / 1.272 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.534e-05/1.194, allocations: 36.34 kB / 1.272 GB, free: 1.492 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/1.194, allocations: 0 / 1.272 GB, free: 1.492 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.0006721/1.195, allocations: 308.8 kB / 1.272 GB, free: 1.352 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.991e-05/1.195, allocations: 84.05 kB / 1.272 GB, free: 1.254 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/1.195, allocations: 169.2 kB / 1.273 GB, free: 1.129 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/1.195, allocations: 27.14 kB / 1.273 GB, free: 1.098 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.856e-05/1.195, allocations: 153.3 kB / 1.273 GB, free: 0.9609 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/1.195, allocations: 62.64 kB / 1.273 GB, free: 0.9102 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.99e-05/1.196, allocations: 50.28 kB / 1.273 GB, free: 0.8789 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.273e-05/1.196, allocations: 325 kB / 1.273 GB, free: 0.5586 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/1.196, allocations: 94.12 kB / 1.273 GB, free: 0.5195 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/1.196, allocations: 163.8 kB / 1.273 GB, free: 404 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/1.196, allocations: 265 kB / 1.274 GB, free: 224 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/1.196, allocations: 0 / 1.274 GB, free: 224 kB / 0.9981 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004341/1.197, allocations: 283.4 kB / 1.274 GB, free: 100 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/1.197, allocations: 6.25 kB / 1.274 GB, free: 100 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/1.197, allocations: 2.625 kB / 1.274 GB, free: 100 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/1.197, allocations: 7.719 kB / 1.274 GB, free: 96 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002603/1.197, allocations: 60.31 kB / 1.274 GB, free: 88 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/1.197, allocations: 8.031 kB / 1.274 GB, free: 84 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/1.197, allocations: 19.58 kB / 1.274 GB, free: 80 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/1.197, allocations: 18.48 kB / 1.274 GB, free: 72 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000218/1.197, allocations: 183.3 kB / 1.274 GB, free: 15.95 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001922/1.198, allocations: 136.9 kB / 1.274 GB, free: 15.84 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003325/1.198, allocations: 244.3 kB / 1.275 GB, free: 15.68 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.615e-06/1.198, allocations: 0.625 kB / 1.275 GB, free: 15.68 MB / 1.014 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0004345/1.198, allocations: 256.6 kB / 1.275 GB, free: 15.57 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/1.198, allocations: 10.72 kB / 1.275 GB, free: 15.56 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/1.198, allocations: 3.031 kB / 1.275 GB, free: 15.56 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.135e-06/1.199, allocations: 7.75 kB / 1.275 GB, free: 15.56 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/1.199, allocations: 63.27 kB / 1.275 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/1.199, allocations: 8.703 kB / 1.275 GB, free: 15.54 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/1.199, allocations: 18.92 kB / 1.275 GB, free: 15.54 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/1.199, allocations: 10.03 kB / 1.275 GB, free: 15.54 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001377/1.199, allocations: 192 kB / 1.275 GB, free: 15.34 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.75e-05/1.199, allocations: 18.31 kB / 1.275 GB, free: 15.33 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003887/1.2, allocations: 204.4 kB / 1.275 GB, free: 15.22 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/1.2, allocations: 1.625 kB / 1.275 GB, free: 15.22 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/1.2, allocations: 1.188 kB / 1.275 GB, free: 15.22 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/1.2, allocations: 1.219 kB / 1.275 GB, free: 15.22 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/1.201, allocations: 0.9637 MB / 1.276 GB, free: 14.51 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/1.201, allocations: 3.281 kB / 1.276 GB, free: 14.51 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/1.201, allocations: 34.89 kB / 1.276 GB, free: 14.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-05/1.201, allocations: 8.422 kB / 1.276 GB, free: 14.5 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/1.201, allocations: 4.719 kB / 1.276 GB, free: 14.5 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.015e-05/1.201, allocations: 10.16 kB / 1.276 GB, free: 14.5 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.201, allocations: 10.75 kB / 1.276 GB, free: 14.49 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004522/1.202, allocations: 433.2 kB / 1.277 GB, free: 14.12 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/1.202, allocations: 111.4 kB / 1.277 GB, free: 14.01 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.35e-05/1.202, allocations: 4.938 kB / 1.277 GB, free: 14.01 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/1.202, allocations: 16.8 kB / 1.277 GB, free: 14.01 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/1.202, allocations: 26.45 kB / 1.277 GB, free: 13.99 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/1.202, allocations: 6.875 kB / 1.277 GB, free: 13.99 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001222/1.202, allocations: 134 kB / 1.277 GB, free: 13.9 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/1.202, allocations: 1.344 kB / 1.277 GB, free: 13.9 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0005417/1.203, allocations: 70.91 kB / 1.277 GB, free: 13.89 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001633/1.203, allocations: 117.7 kB / 1.277 GB, free: 13.79 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005299/1.203, allocations: 322.5 kB / 1.278 GB, free: 13.69 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.203, allocations: 0 / 1.278 GB, free: 13.69 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/1.204, allocations: 85.17 kB / 1.278 GB, free: 13.66 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005066/1.204, allocations: 47.58 kB / 1.278 GB, free: 13.64 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009039/1.205, allocations: 0.5065 MB / 1.278 GB, free: 13.27 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/1.205, allocations: 0.7414 MB / 1.279 GB, free: 12.57 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.016e-05/1.205, allocations: 18.66 kB / 1.279 GB, free: 12.56 MB / 1.014 GB Notification: Performance of SimCode: time 4.01e-07/1.206, allocations: 4 kB / 1.279 GB, free: 12.56 MB / 1.014 GB Notification: Performance of Templates: time 0.005149/1.211, allocations: 2.405 MB / 1.281 GB, free: 12.35 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.892511985031888]