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) 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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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=5000,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=5000,variableFilter="time|sen.I|sen.V|loa.S.1.|loa.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 95.38 kB / 15.37 MB, free: 0.7266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008429/0.008429, allocations: 177.8 kB / 16.27 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.862/2.862, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005192/0.0005195, allocations: 11.41 kB / 0.9027 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3735, allocations: 159.6 MB / 1.059 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.003926/0.3775, allocations: 2.324 MB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002916/0.3805, allocations: 1.461 MB / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/0.3807, allocations: 4 kB / 1.062 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.3809, allocations: 27.78 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006839/0.3816, allocations: 175.4 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005103/0.3821, allocations: 143.7 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005462/0.3827, allocations: 347.1 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007813/0.3835, allocations: 330.6 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.3837, allocations: 83.69 kB / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003552/0.3841, allocations: 111.7 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.3841, allocations: 8 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004852/0.3846, allocations: 267.4 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001338/0.3848, allocations: 67.81 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001815/0.385, allocations: 109.2 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005356/0.3855, allocations: 327.2 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3855, allocations: 4 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3855, allocations: 0 / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.433e-06/0.3855, allocations: 0 / 1.064 GB, free: 15.16 MB / 0.8262 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.0009319/0.3865, allocations: 447.3 kB / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.3865, allocations: 15.97 kB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007253/0.3873, allocations: 80.66 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.3876, allocations: 235.9 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.415e-05/0.3876, allocations: 12.7 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.901e-05/0.3877, allocations: 16.36 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000543/0.3882, allocations: 324.1 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.3883, allocations: 7.938 kB / 1.065 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.3883, allocations: 7.984 kB / 1.065 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.203e-05/0.3884, allocations: 24.27 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004213/0.3888, allocations: 252.6 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.3908, allocations: 1.63 MB / 1.067 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006876/0.3915, allocations: 411.2 kB / 1.068 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.3916, allocations: 93.66 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001656/0.3918, allocations: 93.31 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.3919, allocations: 34.5 kB / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 2.074e-06/0.3919, allocations: 0 / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006995/0.3926, allocations: 308.8 kB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.3926, allocations: 81.3 kB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.3929, allocations: 183.9 kB / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.3929, allocations: 25.7 kB / 1.068 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.393, allocations: 147.9 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.3931, allocations: 47.3 kB / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-05/0.3931, allocations: 29.7 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002105/0.3933, allocations: 323 kB / 1.069 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.3935, allocations: 75.95 kB / 1.069 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.3937, allocations: 162.9 kB / 1.069 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003544/0.3941, allocations: 249.2 kB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3941, allocations: 0 / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005225/0.3946, allocations: 270.5 kB / 1.07 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001536/0.3948, allocations: 161.8 kB / 1.07 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.3948, allocations: 0 / 1.07 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.3948, allocations: 4 kB / 1.07 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002702/0.3951, allocations: 63.89 kB / 1.07 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.3951, allocations: 4 kB / 1.07 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.3953, allocations: 15.98 kB / 1.07 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.3953, allocations: 11.98 kB / 1.07 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.3953, allocations: 4 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003692/0.3957, allocations: 210.6 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/0.3957, allocations: 8.031 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.723e-06/0.3957, allocations: 4 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.3959, allocations: 51.91 kB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3959, allocations: 4 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.3961, allocations: 23.86 kB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.3961, allocations: 8 kB / 1.07 GB, free: 8.562 MB / 0.8262 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.0002206/0.3963, allocations: 225 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.825e-05/0.3964, allocations: 11.81 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004144/0.3968, allocations: 211.7 kB / 1.071 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3968, allocations: 0 / 1.071 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/0.3969, allocations: 7.938 kB / 1.071 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3969, allocations: 0 / 1.071 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.3984, allocations: 0.9615 MB / 1.072 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3984, allocations: 8.094 kB / 1.072 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.3986, allocations: 31.92 kB / 1.072 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.3986, allocations: 8 kB / 1.072 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.3986, allocations: 12.03 kB / 1.072 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.3986, allocations: 4 kB / 1.072 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/0.3986, allocations: 11.98 kB / 1.072 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004093/0.3991, allocations: 444.7 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.66e-05/0.3992, allocations: 104.9 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.3992, allocations: 7.984 kB / 1.072 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.3994, allocations: 15.98 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.3994, allocations: 23.92 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3995, allocations: 8 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001149/0.3996, allocations: 128.8 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3996, allocations: 0 / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005325/0.4001, allocations: 72 kB / 1.072 GB, free: 6.09 MB / 0.8262 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.0001885/0.4003, allocations: 113 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000482/0.4008, allocations: 307.5 kB / 1.073 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.4008, allocations: 0 / 1.073 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.4009, allocations: 81.33 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005383/0.4015, allocations: 40.98 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008626/0.4024, allocations: 0.5557 MB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.4027, allocations: 0.7402 MB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002077/0.403, allocations: 81.45 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.894e-05/0.403, allocations: 19.44 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.403, allocations: 3.938 kB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of Templates: time 0.005145/0.4082, allocations: 1.708 MB / 1.076 GB, free: 2.371 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches