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.001563/0.001563, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001902/0.001902, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.55/1.55, allocations: 222.9 MB / 240.5 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.723/2.723, allocations: 461.9 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 61.06 kB / 0.899 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2768, allocations: 157.4 MB / 1.053 GB, free: 8.355 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.004004/0.2809, allocations: 2.674 MB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002267/0.2832, allocations: 1.492 MB / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.2833, allocations: 4 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0007413/0.2841, allocations: 219.2 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003858/0.2844, allocations: 167.5 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.2848, allocations: 131.7 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003326/0.2851, allocations: 347.1 kB / 1.058 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.2855, allocations: 181.8 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.2856, allocations: 83.64 kB / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.2859, allocations: 119.6 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.2859, allocations: 8 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004026/0.2863, allocations: 275.5 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.434e-05/0.2864, allocations: 67.86 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.2865, allocations: 87.47 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003089/0.2869, allocations: 255.7 kB / 1.059 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2869, allocations: 0 / 1.059 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2869, allocations: 3.938 kB / 1.059 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.2869, allocations: 4 kB / 1.059 GB, free: 2.246 MB / 0.8106 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.0007592/0.2877, allocations: 479.2 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.2877, allocations: 8.031 kB / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005799/0.2883, allocations: 80.64 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.2885, allocations: 228.1 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.2886, allocations: 12.7 kB / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.2886, allocations: 20.38 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004615/0.2891, allocations: 328.1 kB / 1.06 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.2891, allocations: 3.938 kB / 1.06 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.2891, allocations: 8 kB / 1.06 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-05/0.2892, allocations: 16.27 kB / 1.06 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003824/0.2896, allocations: 252.6 kB / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.2911, allocations: 1.642 MB / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005985/0.2918, allocations: 415.1 kB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.2919, allocations: 85.67 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.292, allocations: 89.09 kB / 1.062 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.2921, allocations: 34.56 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.323e-06/0.2921, allocations: 4.188 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006417/0.2927, allocations: 312.5 kB / 1.063 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.2928, allocations: 85.05 kB / 1.063 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.2929, allocations: 175.3 kB / 1.063 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.293, allocations: 29.69 kB / 1.063 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.314e-05/0.2931, allocations: 151.9 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.712e-05/0.2931, allocations: 51.2 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/0.2932, allocations: 45.89 kB / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2933, allocations: 326.8 kB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.2934, allocations: 84.81 kB / 1.063 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.2936, allocations: 151.3 kB / 1.064 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.2939, allocations: 251.7 kB / 1.064 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2939, allocations: 0 / 1.064 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000394/0.2943, allocations: 273.5 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2944, allocations: 8.031 kB / 1.064 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.2944, allocations: 4 kB / 1.064 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.2944, allocations: 7.938 kB / 1.064 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.2946, allocations: 55.89 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.2947, allocations: 3.938 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.2948, allocations: 19.98 kB / 1.064 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.2948, allocations: 11.98 kB / 1.064 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001823/0.295, allocations: 172.1 kB / 1.064 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001633/0.2952, allocations: 146.2 kB / 1.065 GB, free: 11.74 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002707/0.2955, allocations: 232.3 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.014e-06/0.2955, allocations: 0 / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003561/0.2958, allocations: 253.2 kB / 1.065 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/0.2959, allocations: 8 kB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2959, allocations: 4 kB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.03e-06/0.2959, allocations: 4 kB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.2961, allocations: 59.84 kB / 1.065 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.2961, allocations: 4.344 kB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.2962, allocations: 19.92 kB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.2962, allocations: 8 kB / 1.065 GB, free: 11.12 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.0001102/0.2963, allocations: 192.8 kB / 1.065 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.677e-05/0.2964, allocations: 19.8 kB / 1.065 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003582/0.2968, allocations: 212.1 kB / 1.065 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.2968, allocations: 4 kB / 1.065 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2968, allocations: 3.938 kB / 1.065 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2968, allocations: 4 kB / 1.066 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/0.298, allocations: 0.9573 MB / 1.066 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.298, allocations: 7.984 kB / 1.066 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001342/0.2982, allocations: 31.97 kB / 1.066 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.505e-06/0.2982, allocations: 8.422 kB / 1.066 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.2982, allocations: 12 kB / 1.066 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.034e-06/0.2982, allocations: 11.92 kB / 1.067 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/0.2983, allocations: 7.938 kB / 1.067 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003868/0.2986, allocations: 432.8 kB / 1.067 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.702e-05/0.2987, allocations: 112.9 kB / 1.067 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.428e-05/0.2988, allocations: 7.906 kB / 1.067 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.299, allocations: 11.98 kB / 1.067 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/0.299, allocations: 19.92 kB / 1.067 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.299, allocations: 8 kB / 1.067 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001276/0.2992, allocations: 132.7 kB / 1.067 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2992, allocations: 4 kB / 1.067 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005122/0.2997, allocations: 72 kB / 1.067 GB, free: 8.672 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.0001607/0.2999, allocations: 111.1 kB / 1.067 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000484/0.3003, allocations: 306 kB / 1.068 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.3004, allocations: 0 / 1.068 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.3005, allocations: 83.81 kB / 1.068 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/0.301, allocations: 35.86 kB / 1.068 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009061/0.3019, allocations: 0.5787 MB / 1.068 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.3023, allocations: 0.7441 MB / 1.069 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.281e-05/0.3024, allocations: 27.36 kB / 1.069 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of SimCode: time 6.51e-07/0.3024, allocations: 0 / 1.069 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of Templates: time 0.004464/0.3068, allocations: 2.338 MB / 1.071 GB, free: 4.359 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/jenkins1/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